Make it a PWA so it can work offline.
I use this as a screensaver, and when my internet is disconnected it doesn't work. It would be nice to implement https://web.dev/learn/pwa/caching/ and https://web.dev/learn/pwa/serving#cache_first so that it can work offline.
It's pretty easy and only requires the addition of a webmanifest and a service worker in order to work. I've done this before if you want some simple examples: manifest and worker: https://github.com/normanr/ir-ctl-web/commit/28f8e18da8e7f5ec372464ea2fe137a68051bfa0 + caching: https://github.com/normanr/ir-ctl-web/commit/617483dd8ee44c4c0ca3c2e9accb780de89b013c
Oh neat! I'll chuck that in. Thanks for the insight and patience 🌟
Life's been a whirlwind, gonna bang this out right now
@normanr offhand, do you know if caching is possible without a service worker? I know keeping everything on the main thread is inadvisable, but my project fetches things very rarely, and I'd rather be certain that it doesn't leave some lingering background task on visitors' devices.
I believe a service worker is required to handle the network request to serve the results from the cache. It should only be active when the website is in use.
Well all right 😄 I'll resume tomorrow evening, as I am booked solid 👍