by
Lessons:8Length:43 minutes

2.2 Registering a Service Worker

Before you actually code up your service worker script, the first thing you’ll need to do is “register” a service worker on the webpage you want to provide an offline fallback for.

In this lesson we’ll cover how to register a service worker and check that it’s active. While we’re at it, we’ll cover a couple of little things you should be aware of as you’re coding to make sure you don’t run into any “gotchas”.

Related Links