I am trying to use jQuery to detect when the Facebook like button has loaded, and then fade in the button. My current approach is as follows:
$(document).ready(function() {
$(document).on( "load", ".fb-like iframe", function() {
condole.log("loaded");
});
$(".fb-like iframe").ready(function (){
console.log("ready");
});
});
While the 'ready' message displays correctly in the console, the 'loaded' message does not appear. It seems that the 'ready' event is triggered too early for the fadeIn effect I want since it actually needs to wait until everything has finished loading.