code: Not putting it in a SetTimeout would do exactly the same thing?
It's not. By calling a function with SetTimeout you don't interrupt the code flow following the call which means you can pretty much have have two functions running at the same time. It's like a half-arsed attempt at threading except it's not because Javascript doesn't do threading.
|