Progressive Web App - Yahoo Weather
Controls:
Use the Controls to Refresh the data below, and add cities.
The page runs a js script which does the following:
- registers a service worker
- sets up listeners and creates functions
- on startup, populates the city 'cards' with data from localstorage if available, otherwise uses dummy data, until an update is made
- tries to update the cards with data from cache or via the network
- loads latest data for city(ies)
- saves data to localstorage for future use
°C
kmh
°
°
°
°
°
°
°
°
°
°
°
°
°
°
°
Add new city