Created
August 11, 2014 20:26
Adding jquery references dynamically
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
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