Created
March 21, 2015 13:44
-
-
Save tralston/56bd60489c8621d1c535 to your computer and use it in GitHub Desktop.
Load external script with a callback to wait for it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.getScript("http://url/to/javascript.js", function () { | |
// Do something here. This will be safe to call after asynchronous script load | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment