Exposes the client's PageLifecycle state on the ServiceWorker Client API.

Motivation

Service workers do not know the state of a client. If a client is frozen it will not immediately handle a postMessage() being sent to it. In some situations the service worker may not wish to spam the client with messages because that may cause the client to be discarded. In other situations the service worker may wish to focus the window client causing the client to become unfrozen.

Documentation

Specification

Specification link


Specification being incubated in a Community Group

Status in Chromium

Blink>Scheduling


In developer trial (Behind a flag) (tracking bug)

Consensus & Standardization

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

Owner

Search tags

frozen, service worker,

Last updated on 2021-04-26