The document discusses service workers, which are scripts that run in the background of a browser to enable features that do not require a web page or user interaction. Service workers act as a programmable network proxy to control how network requests from web pages are handled, and allow developers to take sites offline or implement push notifications and background syncing. The document provides an overview of how service workers work, what is needed to use them, and suggests additional capabilities like push notifications and background syncing that can be implemented with service workers.
7. What is Service Worker?
A script that is run by your browser in the background, separate from a web page,
opening the door to features which don't need a web page or user interaction.
8. ● Javascript Workers - Hence cannot access DOM. Service Worker communicate and Control the pages via
postMessage
● Service worker is a programmable network proxy, allowing you to control how network requests from your
page are handled.
● Services workers will be terminated when not in use and restarted when needed again.
● Services workers make extensive use of the Promises
9. What we need?
● Web Page
● HTTPs
● Service worker
● Browser which support Service worker
● Static Assets