I've a site where I've putten this code to avoid errors:
$(function() {
var fnDocumentReady = function() {
if(document.readyState != "complete") {
setTimeout(function () { fnDocumentReady(); }, 300);
return;
}
//do stuff
};
fnDocumentReady();
});
But I've recently discovered that in FF 3.5 does not execute the code where the "do stuff" is. After analyzing and debbuging I realized that document.readySate
in FF is always undefined
. Is there any way to replace this for something else that works similar??
Thanks!