- [Instructor] Let's analyze this situation.…So, we have a service worker,…it's currently activated and running,…and it has some clients, controlled clients.…So, pages, PWAs, iFrames, or workers.…But then a new service worker appears.…So, we know when that happens,…the new service worker is being installed…and that service worker is waiting.…The old service worker is still up and running…and it's still the one that is handling the clients,…so, it's still the controller.…
Well, sometimes, it might be a good idea…to swap the service worker as soon as possible.…So, to make the new service worker available now,…I don't want to wait, I want to do it now.…To do that, the new service worker can skip the waiting…just calling skipwaiting, so that's a function…that will make that service worker now the active one.…We typically do this during the install process,…so after it was installed, in that case that event handler…we are going to execute keepwaiting.…
When that happens, now the new service worker is activated…and running, and the old service worker…
- 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.