Skip to content

Latest commit

 

History

History
67 lines (54 loc) · 1.71 KB

index.md

File metadata and controls

67 lines (54 loc) · 1.71 KB
layout featurettes ourresources
default
icon title body
cogwheels
The Service Worker
A worker-like object that intercepts all network requests and lets you handle them in JavaScript.
icon title body
transfer
The Fetch API
XHR revamped.
icon title body
hdd
The Cache API
A simple cache for content retrieved from the Web (or generated), directly accessibly by the Service Worker.
icon title body
cogwheels
Articles
A worker-like object that intercepts all network requests and lets you handle them in JavaScript.
icon title body
transfer
Presentations
XHR revamped.
icon title body
hdd
Slides
A simple cache for content retrieved from the Web (or generated), directly accessibly by the Service Worker.

What are service workers?

It's a new API to enable offline Web apps. (Like AppCache but that doesn't suck.)

Three parts:

{% include featurettes.html featurettes=page.featurettes col=3 %}

Resources?

{% include featurettes.html featurettes=page.ourresources col=3 %}

Show me code

/index.html

{% highlight html %} {% include examples/index.html %} {% endhighlight %}

/service-worker.js

{% highlight javascript %} {% include examples/service-worker.js %} {% endhighlight %}

An great intro by Jake Archibald

<iframe width="853" height="480" src="//www.youtube-nocookie.com/embed/4uQMl7mFB6g?rel=0" frameborder="0" allowfullscreen></iframe>

When can I use it?

Current status of implementations can be found here.