PWA + AMP = Easy for Users and Developers Alike
summary
Combines validated AMP pages into a PWA by fetching AMP HTML (XMLHttpRequest.responseXML), stripping headers, then injecting a full AMP document into a Shadow DOM using the shadow runtime (shadow-v0.js / AMP.attachShadowDoc) loaded async; uses a service worker with Workbox for offline caching, a manifest.json for add-to-home-screen, and an app-shell for fast initial load. Example Shadow Reader reuses Guardian/La Repubblica AMP articles with no JS frameworks, yields instant transitions, and preserves original pages’ delivery via the AMP cache.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 0:57The Web App Dilemma
- 3:21Native vs Web Apps
- 5:10PWA and AMP Explained
- 7:12AMP Component Overview
- 8:55AMP as Rich Content
- 13:11Implementing Shadow DOM
- 15:51Shadow Reader Demo
- 17:49Building the PWA
- 21:21Offline and Features
- 23:41Validation and UX
- 25:19Versatile Applications
- 27:41Conclusion








