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.