On document ready tiny function
function r(f){/in/.test(document.readyState)?setTimeout('r('+f+')',9):f()} r(function(){ //Do things.. });