I am looking at some existing code in a web application. I saw this:
window.setTimeout(function () { ... })
Is this the same as just executing t
There is a minimum delay that setTimeout uses (4ms as per HTML5, Firefox 3.6 uses 10ms). There is a discussion about it on the Mozilla Developer Center documentation page.
setTimeout