Last active
August 29, 2015 13:56
-
-
Save ak-is-ok/e6c4bb656096357bf0ef to your computer and use it in GitHub Desktop.
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 load_script(src) { | |
var head = document.getElementsByTagName('head')[0], | |
script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = src; | |
head.appendChild(script); | |
} | |
function load_jquery(version) { | |
if(version == undefined) { | |
version = '1.11.0' | |
} | |
load_script('http://ajax.googleapis.com/ajax/libs/jquery/' + version + '/jquery.min.js'); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment