a script that your browser runs in the background, separate from a web page, opening the door to features that don't need a web page or user interaction. MDN A service worker is an event-driven worker registered against an origin and a path. W3C Service workers are a new browser feature that provide event-driven scripts that run independently of web pages.
2. Activate: Ran when your service worker is ready to control clients 3. Idle: Active and waiting for events from controlled clients 4. Terminated: Enters this state when not being used. No global state.