javascript - Detect if facebook comments is loaded -
how can detect jquery if facebook comments iframe has loaded. lazy loading comments.
i tried following didn't work.
$('<iframe/>').on("load", function(){ alert('the iframe done loading'); }).appendto('body');
thanks.
when load facebook js sdk, need subscribe xfbml.render
event:
fb.event.subscribe('xfbml.render', function() { alert('the iframe done loading'); });
Comments
Post a Comment