Skip to content

Instantly share code, notes, and snippets.

@theskumar
Created March 8, 2012 05:32
Show Gist options
  • Save theskumar/1998923 to your computer and use it in GitHub Desktop.
Save theskumar/1998923 to your computer and use it in GitHub Desktop.
javacript - async load
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.src = '//third-party.com/resource.js';
s.parentNode.insertBefore(g, s);
}(document, 'script'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment