Created
February 5, 2017 01:31
-
-
Save pierrehenri220/76d33f090ddcccfd437e8c46394cf12f to your computer and use it in GitHub Desktop.
Facebook likebox loader Part 3 of 3 (JS)
This file contains hidden or 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
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