Anyone familiar with JavaScript development in the browser has no doubt encountered a situation where a long-running piece of code makes the user interface unresponsive. This behavior is an artifact of JavaScript’s single-threaded nature. For example, the compute() function below contains a long-running loop simulating computationally intensive code that, even with an empty loop body, will cause a noticeable lag in an application’s response time. Read More →

Share Button