Sending the Angular app into deep, deep offline with Workbox
summary
Demonstrates an Angular PWA built with Workbox 6 and a custom service worker that uses injectManifest, Rollup bundling and workbox-window registration postponed until onload. Shows concrete runtime strategies like cache-first for avatars and network-first for news lists, plus stale-while-revalidate for details, broadcast update and background sync hooks, and recipes for Google Fonts and images. Notes increasing Workbox max file size, clients.claim timing tradeoffs, and a live demo repo and deploy on Azure Static Web Apps.
AI-written summary · about
chapters (16)
- 0:00Start
- 0:32PLATINUM SPONSOR
- 3:16Maxim Salnikov
- 4:40Proper offline-ready web app
- 6:45Precaching the app (shell) itself
- 9:31Service worker 101
- 11:57Options for Angular
- 13:38Setting up
- 15:03Source service worker
- 19:53(Almost) ready service worker
- 20:43Bundling and compressing
- 21:17Rollup plugins configuration
- 23:06Service worker registration
- 29:00Strategies
- 31:07Workbox recipes
- 33:03Simplest offline fallback
related talks
38mSending your Angular App into deep, deep offline with Workbox
32mBuilding an Angular PWA Angular Service Worker or Workbox?
58mOffline Second
54mBuilding an Angular PWA: Angular Service Worker or Workbox?
17mHow to build a PWA and stay sane: Introduction to Workbox
51mAutomating a service worker with Workbox 6
52mMany Frameworks – One PWA Solution
41mOffline Web Apps don't exist anymore!
