Web Workers: Multithreading in JavaScript

Though outside the scope of this book, you should consider using Web Workers if performance is critical to you. Doing so will ensure that a particular update loop always fires at a consistent rate.

Web Workers is an API that allows web applications to spawn background processes that run scripts in parallel to their main page. This allows for thread-like operation with message-passing as the coordination mechanism.

Web Workers

You can find the Web Workers specification at http://dev.w3.org/html5/workers/.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.180.244