Why would you want to add a service worker to your site? Many reasons, though most commonly:
- offline support — allow visitors to still browse (parts of) your site when not connected. Ideally start with offline first support. See offline#Why for more reasons.
- local support — allow visitors (including yourself!) to interact with your site locally, independent of any network connection (thus not blocked / slowed by) and then sync those interactions in the background.
For a broader introduction including more reasons why, see:
This section is a stub, please expand it with articles that have helped you get started!
How to get started with a service worker:
To support more features with your service worker, see the "How to" sections for those features! E.g.
Jeremy Keith on adactio.com since 2015-11-07:
Tantek Çelik on tantek.com since 2019-10-20:
... add yourself
- add yourself here
Things to maybe try doing with service workers.
See the Brainstorming sections of features supported by service workers! E.g.