Table of Contents for Going Offline

A few people on Twitter have asked about the table of contents for my new book about service workers, Going Offline. Fair enough—why not see the menu before placing your order?

  1. Introducing Service Workers Does what is says on the tin. It also talks about switching to HTTPS. This chapter is online at A List Apart so you can try before you buy.
  2. Preparing for Offline This chapter talks about how you register a service worker, and introduces the concept of promises in JavaScript.
  3. Making Fetch Happen Yes, this chapter title is a Mean Girls reference; fight me. The chapter explains fetch events and shows how a service worker can intercept them.
  4. Cache Me if you Can This puntastic chapter is all about caching, and shows you can use caches in your service worker script.
  5. Service Worker Strategies This is the heart of the book, where you get decide what kind of strategy you want to implement—when to go to the network, when to go a cache, and so on. And as a last resort, you can have a custom offline page.
  6. Refining Your Service Worker Building on the previous chapter, this one looks at how you can use different strategies for different kinds of files—images, pages, etc.
  7. Tidying Up This chapter is about good service worker hygiene like deleting old caches. It also introduces some more coding style options.
  8. The Offline Experience By this chapter, the service worker script is done. But there’s still plenty of room for enhancements on that custom offline page, including the use of offline storage.
  9. Progressive Web Apps The book finishes with an explanation of progressive web apps, and a step-by-step guide to creating your own web app manifest.

Sound good? Pre-order your copy of the book now and you’ll have it in your hands ten days from now.

Have you published a response to this? :

Responses

Ian Lloyd

Making Fetch happen. Oh yes. Slow hand clap deserved! 👏👏👏

# Posted by Ian Lloyd on Friday, April 13th, 2018 at 10:19pm

1 Share

# Shared by Frank M. Palinkas on Friday, April 13th, 2018 at 11:51pm

7 Likes

# Liked by Gunnar Bittersmann on Friday, April 13th, 2018 at 8:21pm

# Liked by Joe Mullan on Friday, April 13th, 2018 at 8:46pm

# Liked by Chris Taylor on Friday, April 13th, 2018 at 10:20pm

# Liked by Frank M. Palinkas on Saturday, April 14th, 2018 at 12:17am

# Liked by ant on Saturday, April 14th, 2018 at 8:09am

# Liked by Dominik Schwind on Monday, April 16th, 2018 at 9:46am

# Liked by ⓕⓣ on Tuesday, April 17th, 2018 at 4:13pm

Related posts

Detecting image requests in service workers

It turns out that you can’t rely on the `accept` header.

Clearleft.com is a progressive web app

The Clearleft website works offline …and about time too!

Expectations

Offline could be the new normal.

HTTPS + service worker + web app manifest = progressive web app

Defining the damn thing over and over again.

That new-book smell

Going Offline.

Related links

Request with Intent: Caching Strategies in the Age of PWAs – A List Apart

Aaron outlines some sensible strategies for serving up images, including using the Cache API from your service worker script.

Tagged with

Paris Web 2019 - 10 octobre après-midi - Amphithéâtre - YouTube

Here’s the livestream of the talk I gave at Paris Web—Going Offline, complete with French live-captioning and simultaneous interpretation in .

Tagged with

Offline Web Experiences with Jeremy Keith « CTRL+CLICK CAST

I had a great time chatting with Lea and Emily about service workers on this episode of their podcast—they’re such great hosts!

Here’s the huffduffed audio.

Tagged with

Tagged with

devMode.fm // Going Offline: Service Workers with Jeremy Keith

I talked for an hour about service workers ‘n’ stuff

(Also available on Huffduffer.)

Tagged with

Previously on this day

9 years ago I wrote 100 words 022

Day twenty two.

11 years ago I wrote And be damned

Writing, publishing, sharing, speaking.

13 years ago I wrote Zånhae nights

上海

20 years ago I wrote Turning Japanese

If you happen to be in Brighton and you like Japanese food, be sure to check out the Murasaki cafe/bar on Dyke Road (near Seven Dials).

22 years ago I wrote Celebrity Sighting

I’m sick as a dog right now. I’ve got some kind of cold/flu ailment that involves a raspy throat and copious amounts of phlegm.