Skip to content

Instantly share code, notes, and snippets.

@imchao9
Created September 28, 2017 03:04
Show Gist options
  • Save imchao9/463852baf239cf8818fadfb4394860d1 to your computer and use it in GitHub Desktop.
Save imchao9/463852baf239cf8818fadfb4394860d1 to your computer and use it in GitHub Desktop.
import lodash.js in the browser
function import_lodash() {
var jq = document.createElement('script');
jq.src = "https://lodash.com/vendor/cdn.jsdelivr.net/lodash/4.17.4/lodash.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
jQuery.noConflict();
}
import_lodash();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment