Join Bill Weinman for an in-depth discussion in this video Understanding workers, part of HTML5: Background Processes with Web Workers.
They have a high startup performance cost and a high per-instance memory cost.…So use them sparingly.…Workers run code in the client.…They can be used to avoid blocking for network-intensive operations like…fetching data from a server for AJAX operations.…They can be used to offload computationally intensive processes from the server…to enhance scalability.…Workers may be used for many purposes:…operating client-side databases, image and video processing, or really anything…that you want to do in the background but don't want to do on the server.…
- Deploying a worker
- Detecting browser support
- Communicating with workers
- Understanding API differences in shared workers