Web Worker
Offload heavy computation from the main thread. Keep UI responsive, run complex logic in background.
Module Contents
- Overview — What is a Worker, why is it needed
- Basic Usage — Create, postMessage, terminate
- Dedicated vs Shared — When to use Dedicated / Shared Worker
- MessageChannel — Direct communication between two Workers
- Service Worker — Network proxy and offline cache
- Practice: Offload Heavy Computation — Fibonacci + large array sorting moved to Worker