Search completed in 1.04 seconds.
3 results for "updatefound":
ServiceWorkerRegistration.onupdatefound - Web APIs
the on
updatefound 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.on
updatefound = function() { ...
... }; specifications specification status comment service workersthe definition of 'serviceworkerregistration.on
updatefound' in that specification.
ServiceWorkerRegistration - Web APIs
event handlers serviceworkerregistration.on
updatefound 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
3984 serviceworkerregistration.on
updatefound api, property, reference, référence(2), service workers, serviceworkerregistration, on
updatefound the on
updatefound 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.