- HTML5 introduced web workers to support JavaScript multi-threading.
- Web workers run on a separate thread in parallel to browser's UI thread.
- Web workers can only access limited objects such as functions, and objects like strings, numbers, Date, Array, XMLHttpRequest, etc.
- The worker and the parent page communicate using messaging. Each can add a listener to the onmessage() event to receive messages from the other.
- Read more from this article written by Robert Gravelle and from this article written by Eric Bidelman.
Showing posts with label Web workers. Show all posts
Showing posts with label Web workers. Show all posts
Saturday, April 16, 2016
Web workers
Subscribe to:
Posts (Atom)