Skip to content

Instantly share code, notes, and snippets.

@qWici
Created May 4, 2019 18:27
Show Gist options
  • Save qWici/fc1b5a93bfc5ab0aa8095e162d1dbaf2 to your computer and use it in GitHub Desktop.
Save qWici/fc1b5a93bfc5ab0aa8095e162d1dbaf2 to your computer and use it in GitHub Desktop.
Add jQuery to a third party web site
function l(u, i) {
var d = document;
if (!d.getElementById(i)) {
var s = d.createElement('script');
s.src = u;
s.id = i;
d.body.appendChild(s);
}
}
l('//code.jquery.com/jquery-3.2.1.min.js', 'jquery')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment