Offline first!
summary
Live demo builds a working offline PWA using Service Workers, the Cache API and Fetch API: versioned static cache, dynamic cache with cache.put + response.clone, and an offline.html fallback that actually serves when network fetches fail. Prefetching uses Intersection Observer plus localStorage to avoid repeats and respects save‑data heuristics. Cache cleanup runs on activate and client.postMessage stores dynamic cache name. Measurements show cached loads ~18 ms versus uncached ~35 ms.
AI-written summary · about
chapters (9)
- 0:00Offline first welcome
- 1:04Service workers explained
- 7:26Static caching
- 13:08Offline pages
- 17:04Dynamic caching
- 19:33Cache cleanup
- 22:01Prefetching strategies
- 31:39Local storage tips
- 37:46Closing
related talks
44mOffline first!
23mGo Offline with Service Workers
37mOffline web applications don't exist anymore!
52mGoing offline
52mOffline web applications don't exist anymore!
27mMaking Offline Suck Less with Service Workers
01h 29mService Workers in Action: Building an Offline-Capable Webshop in under 90 minutes
41mOffline Web Apps don't exist anymore!
