service worker registration

The call, navigator.serviceWorker.register('/sw.js'), that asks the browser to install a service worker for a scope of URLs.

In more detail

The browser downloads the script, and checks it again for updates on later navigations. The scope defaults to the folder the script is served from.

Related terms

Taught in

References