New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't call $script() to load files from within a loaded file #15
Comments
Actually, it seems I must have an error in the DOM somewhere perhaps... when I use it on a different page it is working. This seems to be an issue on my end :) |
ok cool -- reopen if you run into anymore problems! thanks :) |
Another update... $script fails with that error on any page where I'm using a Twitter widget with the code provided from their site. When I take the Twitter code out, everything works fine. When I put it back in, all my $script calls after the first one fail. |
oh. ha! I know exactly why this happens. I'll fix this. I also wrote the twitter widget. too funny. |
this should be fixed with the latest patch d2cba2a#L0R9 |
Hey, thanks! I was worried I might not be able to use the Twitter widget along with $script(), but this was one of the fastest turnaround times on an issue I've had :) Awesome work on this loader--it's my favorite so far, and I've been through a lot of them. |
I have a single line in my HTML file that calls $script('script'); in order to load my bootstrapper file which in turn calls $script() for all of my dependency files that I use.
Whenever I try to load something from within script.js, however, I get the following error:
'Uncaught TypeError: Cannot call method 'insertBefore' of null' from script.js on line 84
I could have sworn I had it working earlier, but now all I get is this error.
Any ideas what the cause could be?
The text was updated successfully, but these errors were encountered: