amp-pwa-demo
amp-pwa-demo copied to clipboard
A simple, dependency-free blog that uses a Progressive Web App (PWA) to show Accellerated Mobile Pages (AMP).
This might require some additional work if we don't want the service worker to cache images, and if we want to dynamically size them based on the available space.
Currently, we assume that all pages except for a few exceptions are AMP and should be shown in the AMP shadow DOM. For other sites this might not be the...
To use as fallback when offline. Precaching the entire image would take up too much space. This might require a server-side solution (inlining data-uris for small images).
This is suggested by https://developers.google.com/web/progressive-web-apps/checklist
Currently we only start precaching on the second pageview, once the PWA is initialised and we can select `` tags with JavaScript.