Skip to content

Instantly share code, notes, and snippets.

@SamuelTulach
Created May 2, 2017 12:56
Show Gist options
  • Save SamuelTulach/9fc27dbf2702022316129117166d67e0 to your computer and use it in GitHub Desktop.
Save SamuelTulach/9fc27dbf2702022316129117166d67e0 to your computer and use it in GitHub Desktop.
Load jQuery to webpage from script
function addjquery(){
// Add jQuery to page
var jqueryscript = document.createElement('script');
jqueryscript.setAttribute('src','https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js');
document.head.appendChild(jqueryscript);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment