Embracing Offline First

Book description

It's time to stop treating loss of connectivity as an error state in your web apps. Whether your users are boarding a flight, landing in a country with no local data plan, hiking, or commuting in the metro, offline and poor connectivity are inevitable states in your apps—states you need to plan for. As you develop for an increasingly mobile world, you need to stop treating connectivity loss as an error state in web apps and start thinking offline-first.

In this excerpt from Building Progressive Web Apps, author Tal Ater shows you how to plan and implement an effective offline-first strategy. By exploring code examples for a fictitious hotel web page, you'll learn how to work through several common caching problems. This ebook also includes examples of real-world offline-first approaches at Twitter and The Washington Post.

  • Learn some of the more common design patterns used for caching
  • Mix and match patterns to create new methods for caching and serving content
  • Weigh several options when choosing a caching strategy for your web app
  • Learn methods for implementing the caching strategy you choose
  • Explore different approaches for caching and serving a dynamic web app
  • Understand how an offline-first approach dramatically improves the experience for connected users

Product information

  • Title: Embracing Offline First
  • Author(s): Tal Ater
  • Release date: May 2018
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781492027249