Forked from zenorocha/multiple-3rd-party-widgets.js
Last active
December 15, 2015 23:59
-
-
Save darookee/5344704 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(d, script) { | |
var js, | |
fjs = d.getElementsByTagName(script)[0]; | |
function load(url, id) { | |
if(d.getElementById(id)) {return;} | |
js = d.createElement(script); | |
js.async = true; | |
js.src = url; | |
id && (js.id = id); | |
fjs.parentNode.insertBefore(js, fjs); | |
} | |
load('//apis.google.com/js/plusone.js'); | |
load('//platform.twitter.com/widgets.js'); | |
load('//s.widgetsite.com/widget.js'); | |
}(document, 'script')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment