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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -