Service Worker Lifecycle Playground

The old watchman and the new: install, waiting, skipWaiting and clients.claim() simulated on the spec’s rules. An interactive Service Worker Lifecycle…

Why it matters

The classic after-deploy problems: users still see the old version, a tab does not change controller, or a blank page because old chunks are gone. All of them follow the same lifecycle rules: when a worker waits, when it activates, whom it controls.

The key idea

A new worker waits until no tab is guarded by the old one

Common mistakes

Try it in this playground