Book Image

Offline First Web Development

By : Daniel Sauble
Book Image

Offline First Web Development

By: Daniel Sauble

Overview of this book

When building mobile apps, it’s easy to forget about the moments when your users lack a good Internet connection. Put your phone in airplane mode, open a few popular apps, and you’ll quickly see how they handle being offline. From Twitter to Pinterest to Apple Maps, some apps might handle being offline better—but very few do it well. A poor offline experience will result in frustrated users who will abandon your app, or worse, turn to your competitor’s apps Expert or novice, this book will teach you everything you need to know about designing and building a rigorous offline app experience. By putting the offline experience first, you’ll have a solid foundation to build upon, avoiding the unnecessary stress and frustration of trying to retrofit offline capabilities into your finished app. This basic principle, designing for the worst-case scenario, could save you countless hours of wasted effort.
Table of Contents (17 chapters)
Offline First Web Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

What it means to be offline


This basic assumption that the Internet will always be there is a faulty assumption. The Internet is best described as a graph of servers, each capable of talking to the others:

Network topology

A Server is anything that talks on the Internet: your laptop, your mobile phone, the machine hosting your Cloudant database, and so on. Offline simply means that a specific server is no longer able to talk to the other servers on the Internet. Thus, offline is a matter of perspective.

Server offline

Now, this graph is somewhat dishonest. If you're on a mobile device, all the data goes through a wireless router. If this router goes down, all the phones sending their data through this node go offline. This is why, when your Internet goes down, it's common to ask other people if their Internet is down as well.

Server hierarchy

If you're the only person affected, your device is probably at fault. If other people are affected at the same time, the fault lies higher in the hierarchy...