A service worker is a script that your browser runs in the background, separate from a web page, opening the door to features that don’t need a web page or user interaction . Today, they already include features like push notifications and background sync.
Read moreWhat are the use cases of service workers?
Apart from the obvious use case of returning cat pictures to every image request, we have found developers mainly use service workers primarily for 2 tasks. Service workers have mostly been associated with offline support for web applications and for push notifications for re-engaging with users .
Read moreIs a service worker a web worker?
Web workers and service workers are two types of workers available to websites . They have some things in common: Both run in a secondary thread, allowing JavaScript code to execute without blocking the main thread and the user interface.
Read more