neherlab / covid19_scenarios

Models of COVID-19 outbreak trajectories and hospital demand
https://covid19-scenarios.org
MIT License
1.36k stars 354 forks source link

Split app data per region and load on demand #743

Open ivan-aksamentov opened 4 years ago

ivan-aksamentov commented 4 years ago

πŸ™‹ Feature Request

πŸ”¦ Context

Currently the data for all countries is being statically bundled and loaded on startup https://github.com/neherlab/covid19_scenarios/tree/master/src/assets/data

This is redundant as users most likely are interested in one region or maybe a handful. This also makes the app startup slow, as the JSON are loaded along with the rest of the JS bundle and are then validated.

😯 Describe the feature

We want to split the data into chunks per region.

Decisions tomake:

πŸ’» Examples

πŸ’ Possible Solution

Related