Last active
August 29, 2015 14:07
-
-
Save aFarkas/535707d70f21b8172644 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var timer; | |
var run = function(){ | |
runpictureFill(); | |
if(document.readyState == 'complete'){ | |
clearInterval(timer); | |
} | |
}; | |
timer = setInterval(run, 250); | |
setTimeout(run, document.body ? 9 : 99); | |
document.addEventListener('readystatechange', run, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment