Monday, September 30, 2013

Execute Js code until the document is ready

Execute Js code until the document is ready

What's the best way to keep executing a JS code (each 100 ms in m case)
until the document is ready.
setInterval(function() {
xajax_updateLoader();
}, 100);
One the document is ready. The execution should stop.

No comments:

Post a Comment