Created
May 9, 2016 03:26
-
-
Save amrishodiq/53c68b7102bc901146aefe30a5ad0a45 to your computer and use it in GitHub Desktop.
JavaScript Lazy Loading
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
// Try to load 'worship.js' asynchronously, then | |
$.getScript("worship.js", function( data, textStatus, jqxhr ) { | |
whenWorshipJsLoaded(); | |
}); | |
function whenWorshipJsLoaded() { | |
// Todo: Do something after 'worship.js' successfully loaded. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment