Skip to content

Instantly share code, notes, and snippets.

@dvidsilva
Created September 4, 2013 04:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvidsilva/6432804 to your computer and use it in GitHub Desktop.
Save dvidsilva/6432804 to your computer and use it in GitHub Desktop.
Programmatically add jquery to a page
var head = document.getElementsByTagName("head");
var node = document.createElement("script");
node.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js";
head[0].appendChild(node);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment