Open Bug 1323518 Opened 3 years ago Updated 3 years ago

Service worker basics and lifecycle documentation could be improved

Categories

(Developer Documentation :: API: Web Workers, defect)

defect
Not set

Tracking

(Not tracked)

People

(Reporter: wbamberg, Unassigned)

Details

I needed to understand the service worker lifecycle. I found the MDN docs:
https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers to be less useful than the Google docs: https://developers.google.com/web/fundamentals/instant-and-offline/service-worker/lifecycle.

In particular, I thought the Google page was good at:
* explaining why the lifecycle is the way it is (for example, to ensure that a single page is controlled by the same service worker for its whole lifetime)
* defining terms like "client" and "scope" and "control" explicitly and up-front
You need to log in before you can comment on or make changes to this bug.