Jesse Cravens, back to the hub← all sixteen rooms

Site release 0.4.6, build 7ac5176

The Abandoned Web Archives · R-08 · 26 Aug 2013

Web Worker Patterns

JavaScript, Web Workers

JavaScript is executed in a single thread. If you’re not familiar with threads, what this means is that JavaScript can only execute one block of code at a time. If code is already executing, any interaction by the user will instantiate an asynchronous event that is queued up for later execution. Other events like those from XMLHttpRequests and timers, are also added to the queue.

So, as you might expect, a single-threaded architecture can be problematic to the user experience if a particular script takes a long time to complete.

Read more at: http://tech.pro/tutorial/1487/web-worker-patterns

Comments