Skip to content

Instantly share code, notes, and snippets.

@dpm566
Forked from theprogrammerin/loadDev.js
Created September 21, 2017 12:34
Show Gist options
  • Save dpm566/97d32ce06a4e65dd84f9a1913518e29e to your computer and use it in GitHub Desktop.
Save dpm566/97d32ce06a4e65dd84f9a1913518e29e to your computer and use it in GitHub Desktop.
Load Jquery & Underscore via console
function loadDev(){
var jq = document.createElement("script");
jq.setAttribute("src","http://code.jquery.com/jquery-2.1.0.js")
document.head.appendChild(jq);
var us = document.createElement("script");
us.setAttribute("src","http://underscorejs.org/underscore.js")
document.head.appendChild(us);
console.log("Loaded Jquery and Underscore")
}
loadDev()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment