Skip to content

Instantly share code, notes, and snippets.

@malfborger
Created September 20, 2012 09:17
Show Gist options
  • Save malfborger/3754856 to your computer and use it in GitHub Desktop.
Save malfborger/3754856 to your computer and use it in GitHub Desktop.
JS: load async
(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