Skip to content

Instantly share code, notes, and snippets.

@slikts
Created April 13, 2011 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slikts/917408 to your computer and use it in GitHub Desktop.
Save slikts/917408 to your computer and use it in GitHub Desktop.
Bookmarklet for loading jQuery from Google CDN
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