Skip to content

Instantly share code, notes, and snippets.

@ak-is-ok
Last active August 29, 2015 13:56
Show Gist options
  • Save ak-is-ok/e6c4bb656096357bf0ef to your computer and use it in GitHub Desktop.
Save ak-is-ok/e6c4bb656096357bf0ef to your computer and use it in GitHub Desktop.
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