Skip to content

Instantly share code, notes, and snippets.

@premchandpl
Created August 11, 2014 20:26
Adding jquery references dynamically
function LoadResources() {
if (typeof (jQuery) == "undefined") {
var script = document.createElement("script")
script.type = "text/javascript";
script.src = "https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.0.0.min.js";
document.getElementsByTagName("head")[0].appendChild(script);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment