Created
October 3, 2011 14:22
-
-
Save 0livier/1259197 to your computer and use it in GitHub Desktop.
Load jQuery
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
var jq = document.createElement('script'); | |
jq.src = 'http://jquery.com/src/jquery-latest.js'; | |
jq.type = 'text/javascript'; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
(function() { | |
if (document.defaultView.jQuery) jQueryLoaded(document.defaultView.jQuery); | |
else setTimeout(arguments.callee, 100); | |
})(); | |
function jQueryLoaded($) { | |
console.dir($); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment