Closed ctrachte closed 3 years ago
We need to leverage service workers (if possible) to fetch weather updates to the selected dates/locations every 30 seconds or so, because weather often changes rapidly.
The service worker should use cached data if no connection is available.
Start by reading through mozillas documentation here, and then researching ways to implement them https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#registering_your_worker
We need to leverage service workers (if possible) to fetch weather updates to the selected dates/locations every 30 seconds or so, because weather often changes rapidly.
The service worker should use cached data if no connection is available.
Start by reading through mozillas documentation here, and then researching ways to implement them https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#registering_your_worker