Search completed in 1.04 seconds.
3 results for "updatefound":
ServiceWorkerRegistration.onupdatefound - Web APIs
WebAPIServiceWorkerRegistrationonupdatefound
the onupdatefound property of the serviceworkerregistration interface is an eventlistener property called whenever an event of type statechange is fired; it is fired any time the serviceworkerregistration.installing property acquires a new service worker.
... syntax serviceworkerregistration.onupdatefound = function() { ...
... }; specifications specification status comment service workersthe definition of 'serviceworkerregistration.onupdatefound' in that specification.
ServiceWorkerRegistration - Web APIs
WebAPIServiceWorkerRegistration
event handlers serviceworkerregistration.onupdatefound read only an eventlistener property called whenever an event of type updatefound is fired; it is fired any time the serviceworkerregistration.installing property acquires a new service worker.
...next, it adds an updatefound listener in which it uses the service worker registration to listen for further changes to the service worker's state.
... if the service worker hasn't changed since the last time it was registered, then the updatefound event will not be fired.
... if ('serviceworker' in navigator) { navigator.serviceworker.register('/sw.js') .then(function(registration) { registration.addeventlistener('updatefound', function() { // if updatefound is fired, it means that there's // a new service worker being installed.
Index - Web APIs
WebAPIIndex
3984 serviceworkerregistration.onupdatefound api, property, reference, référence(2), service workers, serviceworkerregistration, onupdatefound the onupdatefound property of the serviceworkerregistration interface is an eventlistener property called whenever an event of type statechange is fired; it is fired any time the serviceworkerregistration.installing property acquires a new service worker.