Skip to content

Instantly share code, notes, and snippets.

@rkpatel33
Created February 8, 2017 20:36
Show Gist options
  • Save rkpatel33/88dccfc8586f5da498ddc00c4f6fb3df to your computer and use it in GitHub Desktop.
Save rkpatel33/88dccfc8586f5da498ddc00c4f6fb3df to your computer and use it in GitHub Desktop.
Load various JS libraries for working from the console
var library_urls = [
'https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js',
'https://raw.githubusercontent.com/jquery/jquery-simulate/master/jquery.simulate.js',
];
library_urls.forEach(function(url) {
var script = document.createElement('script');
script.src = url;
document.getElementsByTagName('head')[0].appendChild(script);
setTimeout(function(){ console.log(url + " loaded"); }, 2000);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment