A project to meet the 'lighthouse audit test' of a URL that responds with a 200 when offline and also gives some kind of visual responsive cue to the user that that would seem as if they are in fact online.
Intended to be a re-usable module basically to add some kind of customizable failing view so that a user never see's the failasaur or equivalent anymore:
Thanks to @airbr for the idea! ๐ก
- clone the repo
- run
http-server
or similar in the repo folder - Visit localhost:8080 or whatever
- See regular content on page, service worker info in console
- Go offline with DevTools or kill
http-server
- refresh the page
- See cached offline page instead of browser version
- style the app and offline page to match
- include manifest, etc. for Lighthouse