Skip to content

Instantly share code, notes, and snippets.

@aFarkas
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aFarkas/535707d70f21b8172644 to your computer and use it in GitHub Desktop.
Save aFarkas/535707d70f21b8172644 to your computer and use it in GitHub Desktop.
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