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

It fires if a SW was waiting at registration time, or if an update was found and installed but then that SW didn't move to the activating state.

> event listeners prepare for future events, but require an alternate approach for when the event already happened before the listener attached.

Yeah, it's possible to miss it. If you await registration, you'd missed the case you just described. We may consider dispatching our events in the next microtask to help avoid this.


-- 
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-463404751

Received on Wednesday, 13 February 2019 22:39:38 UTC