TechPulse
Software and Apps · Demonstration article

The offline test every web app should pass

Opening a cached page is only the first step. The harder question is what happens to the work you do on it.

An open laptop on a desk
Illustrative photograph by Tasha Kostyuk · Unsplash

Which parts travel with you?

Caching a useful task

A service worker can intercept a request and supply a cached response. An app can use that ability to make selected material available after a connection drops. The meaningful unit for a reader is a task. If yesterday’s timetable loads but its platform details require another request, only part of the journey is available.

The return trip

Saving and synchronizing

Imagine adding a note on a train. The app should distinguish a note saved on the device from one already synchronized elsewhere. Testing the experience means closing the app, reopening it offline and reconnecting. A visible pending state gives the user a much better account of what happened than a success message after the first keystroke.

Sources and references

About Maya Chen

A fictional TechPulse contributor for this demonstration edition.

Related stories