3 ms·
Looks cool! This would be a really good candidate for a service worker though [1,2]. A service worker would let you make the site available offline, so users ca
by timvdalen 9y ago
Looks cool! This would be a really good candidate for a service worker though [1,2].
A service worker would let you make the site available offline, so users can actually turn off their connection _before_ visiting the site.
A basic caching offline-available service worker shouldn't be too hard, you just need to handle the case where a user comes to your site and is already offline.
[1]: https://developers.google.com/web/fundamentals/getting-started/primers/service-workers https://developers.google.com/web/fundamentals/getting-start...
[2]: https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API https://developer.mozilla.org/en-US/docs/Web/API/Service_Wor...