var loadAsyncDeferredFacebook = function() { (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/it_IT/sdk.js#xfbml=1&version=v3.0"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); } if (window.addEventListener) window.addEventListener("load", loadAsyncDeferredFacebook, false); else if (window.attachEvent) window.attachEvent("onload", loadAsyncDeferredFacebook); else window.onload = loadAsyncDeferredFacebook; var loadAsyncDeferredTwitter = function() { var d = document; var s = 'script'; var id = 'twitter-wjs'; var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){ js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);} } if (window.addEventListener) window.addEventListener("load", loadAsyncDeferredTwitter, false); else if (window.attachEvent) window.attachEvent("onload", loadAsyncDeferredTwitter); else window.onload = loadAsyncDeferredTwitter;