mdn / mdn/content

Using service workers: The picture in the "Basic architecture" section is misleading

Open
#25,845 2 comments 0 reactions 0 assignees View on GitHub
area: Workers Content:WebAPI
Dominant language
Markdown
Stars
11k
Forks
23.2k
Avg merge
2d 9h
Merged PRs (30d)
331

Description

### MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#basic_architecture

### What specific section or headline is this issue about?

Basic architecture

### What information was incorrect, unhelpful, or incomplete?

When there is no ServiceWorker installed, the `activate` event is sent to the ServiceWorker regardless of the pages currently opened.

### What did you expect to see?

I didn't expect to see the step number 3: "Waiting for clients to be closed". If by "clients" it is meant the ones the previous ServiceWorker has associated, then it doesn't make sense either because the picture says in the step number zero that there is no ServiceWorker.

### Do you have any supporting links, references, or citations?

_No response_

### Do you have anything more you want to share?

_No response_

### MDN metadata

Page report details

* Folder: `en-us/web/api/service_worker_api/using_service_workers`
* MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers
* GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/api/service_worker_api/using_service_workers/index.md
* Last commit: https://github.com/mdn/content/commit/ac3a9701390bedd2544895fda96fd0be488e4fad
* Document last modified: 2023-02-28T10:19:31.000Z

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.