Search completed in 0.94 seconds.
ServiceWorkerRegistration.onupdatefound - Web APIs
working draft initial definition. ...
... working draft initial definition. ...
...ever an event of type statechange is fired; it is fired any time the serviceworkerregistration.installing property acquires a new service worker. note: this feature is available in web workers. syntax serviceworkerregistration.on
updatefound = function() { ... }; specifications specification status comment service workersthe definition of 'serviceworkerregistration.on
updatefound' in that specification. working draft initial definition. ...
ServiceWorkerRegistration - Web APIs
g indexed content for offline viewing. unimplemented properties serviceworkerregistration.periodicsync read only returns a reference to the periodicsyncmanager interface, which manages periodic background synchronization processes. this was mentioned as an idea in the sw explainer at some point, but as yet has not been implemented anywhere. 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. methods also implements methods from its parent interface, eventtarget. serviceworkerregistration.getnotifications() returns a promise that resolves to an array of notification objects. servicewor...
... for an updated version of the service worker without consulting caches. serviceworkerregistration.unregister() unregisters the service worker registration and returns a promise. the service worker will finish any ongoing operations before it is unregistered. examples in this example, the code first checks whether the browser supports service workers and if so registers one. 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('updatefo...
...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. var installingworker = registration.installing; console.log('a new service worker is being installed:', installingworker); // you can listen for changes to the installing service worker's // state via installingworker.onstatechange }); }) .catch(function(error) { console.log...
Index - Web APIs
null. 3983 serviceworkerregistration.navigationpreload api, navigationpreloadmanager, offline, property, service workers, serviceworkerregistration, workers the navigationpreload read-only property of the serviceworkerregistration interface returns the navigationpreloadmanager associated with the current service worker registration. 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. 3985 serviceworkerregi...