- [Instructor] I'm in 02_07 > Begin project…and I'm inside the index.html.…When we were registering the serviceWorker,…we need to remember that we receive a promise.…When that promise give us the callback…when that promise was fulfilled,…we're going to receive a registration object.…That object is important…because there are several events…that we combine to the registration,…also there are some properties…that we can listen to, for example,…when we check the registration object,…we can verify if there is an actual active serviceWorker…currently available and it will give us…the active serviceWorker.…
So, for example, we can listen to events…for that serviceWorker such as onerror or onstatechange…in the case that serviceWorker, for example,…is going to be replaced by a new one.…Also we can check its scriptURL and current state.…Active is not the only serviceWorker…that we can check.…We can also check if there is any waiting serviceWorker.…That's another serviceWorker with the same API…that active has…and also we do have installing…
- Service worker life cycle
- Registering service workers
- Handling service worker events
- Updating service workers
- Acting as a network proxy
- Configuring cache storage
- Communicating with clients
- Optimizing web performance
Skill Level Advanced
Web Portfolio Projects: Binding and Propagationwith Leigh Lawhon1h 9m Intermediate
1. A New Citizen for the Web
2. Work with Service Workers
3. Acting as a Network Proxy
4. Cache Storage
5. Work with APIs in the Service Worker
6. Tips and Tricks for Web Performance
Next steps1m 55s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.