To conform to the specification, ExtendableEvent.waitUntil() and FetchEvent.respondWith() can now be called during the microtask checkpoint at the end of event dispatch. Previously, this would throw an InvalidStateError.

Specification

Specification link


Specification being incubated in a Community Group

Status in Chromium

Blink>ServiceWorker


Enabled by default

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owner

Search tags

service, serviceworker, worker, event, dispatch, microtask, respondWith, waitUntil,

Last updated on 2020-11-09