- [Instructor] When you start working with service workers,…you want to do a lot of stuff,…because you feel the power that you have…inside that new item on the web,…but we need to think about the available APIs…that are tackling that context,…because we need to remember…that the service worker's not like any window,…like any task or code that you're used to,…it's working in its own separate context,…in its own separate process,…and it doesn't have a UI,…so despite not having any API for user interface,…there is no way that the synchronous API can be executed…in that context.…
So, for example, look at the storage.…That's a synchronous API,…so it's not really async, can't be executed there,…because the problem is that…if we are locking the thread in a service worker,…we might have a problem, because when we do that,…if the browser is trying to request more resources,…we are not able to respond…and we are the proxy that must respond.…We are the service workers.…So that's why, for example, a standard HTEXT,…like HML, HTTP request, that can be async API,…
- 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.