Results 81 - 100 of 117

ServiceWorkerRegistration.update()

The update method of the ServiceWorkerRegistration interface attempts to update the service worker. It fetches the worker's script URL, and if the new worker is not byte-by-byte identical to the current worker, it installs the new worker. The fetch of the worker bypasses any browser caches if the previous fetch occurred over 24 hours ago.
API Method Reference Service Workers ServiceWorkerRegistration Update update

ServiceWorkerRegistration.waiting

The waiting property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is installed. This property is initially set to null.
API Property Reference Référence Service Workers ServiceWorkerRegistration waiting

Web Workers API

Web Workers are a mechanism by which a script operation can be made to run in a background thread separate from the main execution thread of a web application. The advantage of this is that laborious processing can be performed in a separate thread, allowing the main (usually the UI) thread to run without being blocked/slowed down.
API Service Workers Shared Workers Web Workers Workers

Client.url

The url read-only property of the Client interface returns the URL of the current service worker client.
API Client Experimental Expérimental Property Reference Référence Service Workers url URL

ExtendableEvent

The ExtendableEvent interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.
API Experimental ExtendableEvent Interface Offline offline Reference Service Workers ServiceWorker Workers

FetchEvent.isReload

The isReload read-only property of the FetchEvent interface returns true if the event was dispatched by the user attempting to reload the page, and false otherwise. Pressing the refresh button is a reload while clicking a link and pressing the back button is not.
API Experimental Expérimental FetchEvent isReload Property Reference Référence Service Service Workers Workers