- classic or module
- classic supported in all browsers but for module the WorkerPlugin is needed: worker-plugin provides two features: parsing and handling of new Worker(), and standalone bundling of modules... standalone Webpack loader. This is useful for generating bundles for use in iframes, Service Workers or Worklets.
- shared or dedicated
- dedicated worker is only accessible from the script that first spawned it, whereas shared workers can be accessed from multiple scripts
- dedicated sub- and parent-
- Service Worker
iOS versions#10.1 but disabled by default
- Comlink provides a nice transparent API with Proxies... why I don’t use it... With Comlink, the API in the main thread is an async function. You need to put await in front of Comlink.wrap. With React, we can hide the async behavior in hooks. The RPC style is limited. Web Workers are often used for time consuming tasks. We may need to show progress... We use (async) generators