Skip to content

Instantly share code, notes, and snippets.

@janusnic
Forked from AllThingsSmitty/script-loaded.js
Last active August 29, 2015 14:21
Show Gist options
  • Save janusnic/c3805ab4ca75397fcd08 to your computer and use it in GitHub Desktop.
Save janusnic/c3805ab4ca75397fcd08 to your computer and use it in GitHub Desktop.
var myScript = document.createElement('script');
myScript.src = 'http://code.jquery.com/jquery-2.1.4.min.js';
myScript.onload = function() {
console.log('jQuery loaded.');
};
document.body.appendChild(myScript);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment