Workers and service workers
Move work off the main thread and build offline-capable apps.
- WEB.06.01Web Workers + SharedArrayBuffer, Atomics and cross-origin isolationCoreMid-level13 min
- WEB.06.03Service worker lifecycleCoreMid-level12 min
- WEB.06.04Caching strategies and offlineCoreMid-level12 min
Interview questions in this module
- What is a Web Worker and what can it not do?
- What are transferable objects?
- Describe the service worker lifecycle. Why does a new service worker wait?
- Compare cache-first, network-first and stale-while-revalidate.
- How do you avoid users being stuck on an old version because of a service worker?
- Why does SharedArrayBuffer need cross-origin isolation?