Skip to content

Instantly share code, notes, and snippets.

@zvoase
Created January 24, 2009 05:19
Show Gist options
  • Save zvoase/51350 to your computer and use it in GitHub Desktop.
Save zvoase/51350 to your computer and use it in GitHub Desktop.
function add_script (url) {
head = document.getElementsByTagName('head')[0];
script = document.createElement('script');
script.src = url;
script.type = 'text/javascript';
head.appendChild(script);
return script;
}
add_script('http://www.billyreisinger.com/jash/source/latest/Jash.js');
add_script('http://google.com/jsapi');
add_script('http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.js');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment