December 5, 2010JavaScript Timer-Based Pseudo-Threading In my previous post, JavaScript Execution and Browser Limits, I described how the top 5 browsers determine when JavaScript code has run for too long and throw “unresponsive script” errors. It’s not practical to change the browser’s behavior and it may not always be possible to offload processing to the server. Fortunately, timers can help us
![JavaScript Timer-Based Pseudo-Threading — SitePoint](https://cdn-ak-scissors.b.st-hatena.com/image/square/26e92c2ab218940101f2567d3b0c5ad322d10307/height=288;version=1;width=512/https%3A%2F%2Fwww.sitepoint.com%2Fwp-content%2Fthemes%2Fsitepoint%2Fassets%2Fimages%2Ficon.javascript.png)