Skip to content

Instantly share code, notes, and snippets.

@kamiyam
Created December 29, 2011 05:43
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 kamiyam/1532177 to your computer and use it in GitHub Desktop.
Save kamiyam/1532177 to your computer and use it in GitHub Desktop.
// JavaScript Document
(function(d){
setTimeout( function(){
var js, id = "facebook-jssdk", fbroot = "fb-root";
if ( d.getElementById(id) ) { return; }
if ( d.getElementById( fbroot ) ){
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/ja_JP/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}
else
{
setTimeout( arguments.callee, 500 );
}
}, 1 );
}(document));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment