- 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.
Saturday, April 16, 2016
Web workers
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment