Skip to content

Commit

Permalink
chore(docs): Improve "Adding a service worker" (#33737)
Browse files Browse the repository at this point in the history
Co-authored-by: Lennart <lekoarts@gmail.com>
  • Loading branch information
Rutam21 and LekoArts authored Nov 1, 2021
1 parent e1ceac4 commit 54da292
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/add-a-service-worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
title: Adding a Service Worker
---

## What is a service worker
## What is a service worker?

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. They increase your site availability in spotty connections, and are essential to making a nice user experience.
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. They increase your site availability in spotty connections and are essential to making a nice user experience.

It supports features like push notifications and background sync.

## Using service workers in Gatsby with `gatsby-plugin-offline`

Gatsby provides awesome plugin interface to create and load a service worker into your site [gatsby-plugin-offline](https://www.npmjs.com/package/gatsby-plugin-offline).
Gatsby provides an awesome plugin interface to create and load a service worker into your site: [gatsby-plugin-offline](https://www.npmjs.com/package/gatsby-plugin-offline).

You can use this plugin together with the [manifest plugin](https://www.npmjs.com/package/gatsby-plugin-manifest). (Don’t forget to list the offline plugin after the manifest plugin so that the manifest file can be included in the service worker).

Expand Down

0 comments on commit 54da292

Please sign in to comment.