Skip to content

Instantly share code, notes, and snippets.

@pierrehenri220
Created February 5, 2017 01:31
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 pierrehenri220/76d33f090ddcccfd437e8c46394cf12f to your computer and use it in GitHub Desktop.
Save pierrehenri220/76d33f090ddcccfd437e8c46394cf12f to your computer and use it in GitHub Desktop.
Facebook likebox loader Part 3 of 3 (JS)
window.fbAsyncInit = function () {
FB.init({xfbml:true});
FB.Event.subscribe('xfbml.render',function(response){
if (!/fb_loaded/.test(document.body.className)) {
document.body.className += " fb_loaded";
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment