Skip to content

Instantly share code, notes, and snippets.

@Kenty
Last active August 29, 2015 14:11
Show Gist options
  • Save Kenty/b07b10921e7700093048 to your computer and use it in GitHub Desktop.
Save Kenty/b07b10921e7700093048 to your computer and use it in GitHub Desktop.
snsの非同期設定
( function(d,s,id){
setTimeout(function() {
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.async = true;
js.src = p + '://platform.twitter.com/widgets.js';
fjs.parentNode.insertBefore(js,fjs);
}
}, 3000);
} ) (document, 'script', 'twitter-wjs');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment