Skip to content

Instantly share code, notes, and snippets.

@fordlee404
Forked from zenorocha/multiple-3rd-party-widgets.js
Last active December 15, 2015 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fordlee404/5298016 to your computer and use it in GitHub Desktop.
Save fordlee404/5298016 to your computer and use it in GitHub Desktop.
(function() {
var newScript, load,
firstScriptTag = document.getElementsByTagName('script')[0];
load = function load(url) {
newScript = document.createElement('script');
newScript.async = true;
newScript.src = url;
firstScriptTag.parentNode.insertBefore(newScript, firstScriptTag);
}
load('//apis.google.com/js/plusone.js');
load('//platform.twitter.com/widgets.js');
load('//s.widgetsite.com/widget.js');
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment