Re: [w3c/ServiceWorker] Provide a one-line way to listen for a waiting Service Worker (#1222)

Actually, let me pose a more specific question.

There are only five states: `installing`, `installed` (waiting), `activating`, `activated`, and `redundant`.

`installing` can be tracked with `ServiceWorkerRegistration.onupdatefound`; `activated` can be traced with `navigator.serviceWorker.oncontrollerchange`. That leaves three states that are annoying to listen for: `installed`, `activating`, and `redundant`.

This issue is about tracking the `installed` state. You just mentioned that some people care about the `redundant` state, which comes as a surprise to me.

Are you aware of anybody who pays attention to the `activating` state for anything? (I guess someone might, uh, log it for performance tracking? I really can't think of any user-facing action to take.)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1222#issuecomment-351773907

Received on Thursday, 14 December 2017 17:05:18 UTC