Created
April 13, 2011 11:50
-
-
Save slikts/917408 to your computer and use it in GitHub Desktop.
Bookmarklet for loading jQuery from Google CDN
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
javascript:(function() { | |
var s = document.createElement('script'); | |
s.onload = function() { | |
jQuery.noConflict(); | |
if (window.console && window.console.log) { window.console.log('jQuery', jQuery.fn.jquery); } | |
}; | |
s.setAttribute('src', location.protocol + '//ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js'); | |
document.getElementsByTagName('head')[0].appendChild(s); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment