Skip to content

Instantly share code, notes, and snippets.

@calvinf
Created February 8, 2011 23:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvinf/817519 to your computer and use it in GitHub Desktop.
Save calvinf/817519 to your computer and use it in GitHub Desktop.
//for additional examples, see: http://www.stevesouders.com/p3pc/
var theOtherScript = 'http://example.com/js/script.js';
var el = document.createElement('script');
el.async = false;
el.src = theOtherScript;
el.type = 'text/javascript';
(document.getElementsByTagName('HEAD')[0]||document.body).appendChild(el);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment