Join Bill Weinman for an in-depth discussion in this video Understanding API differences in shared workers, part of HTML5: Background Processes with Web Workers.
It's also worth noting that the shared worker cannot use event listeners from inside the worker code; it must use the IDL interface for communicating with the parent. We'll look at an example of a shared worker implementation in the rest of this chapter.
- Deploying a worker
- Detecting browser support
- Communicating with workers
- Understanding API differences in shared workers