Back to Content

ServiceWorkerRegistration: waiting property

files/en-us/web/api/serviceworkerregistration/waiting/index.md

latest773 B
Original Source

{{APIRef("Service Workers API")}}{{SecureContext_Header}} {{AvailableInWorkers}}

The waiting read-only property of the {{domxref("ServiceWorkerRegistration")}} interface returns a service worker whose {{domxref("ServiceWorker.state")}} is installed. This property is initially set to null.

Value

A {{domxref("ServiceWorker")}} object, if it is currently in an installed state.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also