Skip to content

Instantly share code, notes, and snippets.

@aFarkas aFarkas/runpicturefill.js
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.