Skip to content

Instantly share code, notes, and snippets.

@gseguin
Created August 4, 2011 19:31
Show Gist options
  • Save gseguin/1126024 to your computer and use it in GitHub Desktop.
Save gseguin/1126024 to your computer and use it in GitHub Desktop.
jQMify this!
javascript:(function(doc, docElem){ function s(url, css, sc){ sc = doc.createElement( css ? "link" : "script");if(css){sc.rel = "stylesheet";} sc[css?"href":"src"] = url; docElem.insertBefore(sc,docElem.firstChild); return sc; } s("http://jquerymobile.com/test/themes/default/jquery.mobile.core.css", true ); s("http://jquerymobile.com/test/themes/default/jquery.mobile.transitions.css", true ); var jq =s("http://code.jquery.com/jquery-latest.min.js"); jq.onload = function(){ s( "http://code.jquery.com/mobile/latest/jquery.mobile.min.js"); }; })(document, document.documentElement );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment