- [Instructor] Understanding the life cycle…of a service worker is really important because…this is new to the web and the life cycle is…completely different to any child script…that you have coded before.…So, first time you access a website,…there is no service worker installed,…and the website is registering that service worker.…So, from a service worker's point of view…this is what's going on.…First, the service worker is parsed,…so the file is downloaded by the browser and parsed,…and then it go through an installing process,…and there is an event that we combine to known as install.…
After it was installed, it's waiting.…Maybe you're thinking, waiting for what.…Well, it's waiting because sometimes…there is a previous service worker in memory, so it's…waiting for that previous service worker to stop working.…After that's happening, we go through…the next step that is activation.…So, there is an activate event that we can also listen,…and after that the service worker is activated.…Activated means that it's right now…
- 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 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.