I have the following problem. I'm using .load to perform an action after loading an iframe
$(document).ready(function() {
$('iframe').on('load',function()
{
$('#diviframe').fadeTo(200,1);
});
});
Everything works fine, except if the iframe loads before the code. I came to this conclusion because I tested with iframe with just one word (to load faster) and with several texts (to take a little longer to load). Anyone have any ideas how to solve this?