Revision: 29359
Updated Code
at August 6, 2010 03:53 by brandonjp
Updated Code
// jQuery dynamic loader - load jQuery using pure javascript js
// if jQuery is undefined or does not exist, then load it
if ( !window.jQuery ) {
var jqscript = document.createElement('script');
jqscript.setAttribute("type", "text/javascript");
jqscript.setAttribute("src", "http://code.jquery.com/jquery.min.js");
document.getElementsByTagName("head")[0].appendChild(jqscript);
};
Revision: 29358
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 28, 2010 01:36 by brandonjp
Initial Code
// jQuery dynamic loader - load jQuery using pure javascript js
// if jQuery is undefined or does not exist, then load it
if ( !window.jQuery ) {
var jqscript = document.createElement('script');
jqscript.setAttribute("type", "text/javascript");
jqscript.setAttribute("src", "http://code.jquery.com/jquery.min.js");
document.getElementsByTagName("head")[0].appendChild(jqscript);
};
Initial URL
Initial Description
Initial Title
jQuery dynamic loader - load jquery using pure js javascript if jQ is undefined or does not exist
Initial Tags
javascript, js, textmate, script, jquery, load
Initial Language
jQuery