From c92aba7508871a4518f5f6e9588dab7cacc1347f Mon Sep 17 00:00:00 2001 From: dgash Date: Fri, 5 Feb 2016 11:33:05 -0800 Subject: [PATCH] Copy edit Spelling, grammar, punctuation, markdown formatting; no significant content changes. --- .../amp-install-serviceworker.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/extensions/amp-install-serviceworker/amp-install-serviceworker.md b/extensions/amp-install-serviceworker/amp-install-serviceworker.md index 2b85a3795d54..7bdd94542520 100644 --- a/extensions/amp-install-serviceworker/amp-install-serviceworker.md +++ b/extensions/amp-install-serviceworker/amp-install-serviceworker.md @@ -14,35 +14,33 @@ See the License for the specific language governing permissions and limitations under the License. --> -### `amp-install-serviceworker` +## `amp-install-serviceworker` The `amp-install-serviceworker` component allows installing a [ServiceWorker](http://www.html5rocks.com/en/tutorials/service-worker/introduction/) for the current page. -The idea here is that this ServiceWorker runs whenever the AMP file is served from the origin where you publish the AMP file. The ServiceWorker will not be loaded when the document is loaded from an AMP cache. +The idea is that the ServiceWorker runs whenever the AMP file is served from the origin where you publish the AMP file. The ServiceWorker will not be loaded when the document is loaded from an AMP cache. -See [this article](https://medium.com/@cramforce/amps-and-websites-in-the-age-of-the-service-worker-8369841dc962) for how ServiceWorkers can help with making the AMP experience awesome with ServiceWorkers. +See [this article](https://medium.com/@cramforce/amps-and-websites-in-the-age-of-the-service-worker-8369841dc962) for how ServiceWorkers can help improve the overall AMP experience. ### Example ```html - - ``` ### Behavior -Registers the ServiceWorker given by the `src` attribute. If the current origin is different from the origin of the ServiceWorker, this custom element does nothing (Emits warning in development mode). +The component registers the ServiceWorker given by the `src` attribute. If the current origin is different from the origin of the ServiceWorker, the component does nothing (although it emits a warning in development mode). ### Attributes -#### `src` +**`src`** URL of the ServiceWorker to register. -#### `layout` +**`layout`** Must have the value `nodisplay`.