New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download web data dynamically #302
Labels
enhancement
New feature or request
Comments
ivan-aksamentov
added
enhancement
New feature or request
help wanted
Extra attention is needed
good first issue
Good for newcomers
labels
Apr 29, 2022
ivan-aksamentov
removed
help wanted
Extra attention is needed
good first issue
Good for newcomers
labels
Apr 29, 2022
3 tasks
This would also allow to switch data URLs dynamically, to be able to fetch data from a non-default location. This will be handy to organize experiments and to preview freshly generated data, especially if we Move data out of git repository #301. For example newly generated data can be stored on a preview S3 bucket and the web app can fetch data from it instead of from production bucket. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the data is made available to the application through the synchronous ES6
import
, processed by webpack, which bundles JSON files into resulting JS files along with the application code.An import was an easy and quick solution in the beginning
but it's no longer great nowadays, because data size have grown substantially, blowing up the app bundle, making the app very slow and requiring more resources for CI builds.
An alternative would be to host data separately from the app bundle and to fetch it dynamically from the network.
Fetching data from a network location have some additional disadvantages:
Steps:
import
spublic
directory during build, along with other static dataThe text was updated successfully, but these errors were encountered: