Web Worker
Offload heavy computation from the main thread. Keep the UI responsive while running complex logic in the background.
Module Contents
- Overview — What is a Worker, and why do you need one
- Basic Usage — Creating, postMessage, terminate
- Dedicated vs Shared — Choosing between Dedicated / Shared Worker
- MessageChannel — Direct communication between two Workers
- Service Worker — Network proxy and offline caching
- Practical: Offloading Computation — Fibonacci + large array sorting in a Worker