Created
June 14, 2012 13:02
-
-
Save ksafranski/2930143 to your computer and use it in GitHub Desktop.
Replacement for the jQuery $.getScript function with caching
This file contains 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 = function(url, callback, cache){ | |
$.ajax({ | |
url: url, | |
dataType: 'script', | |
success: callback, | |
cache: cache | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: