broadinstitute / gnomad-browser

Explore gnomAD datasets on the web
https://gnomad.broadinstitute.org
MIT License
81 stars 44 forks source link

Code split browser bundle #672

Open nawatts opened 3 years ago

nawatts commented 3 years ago

JS code for the browser is currently all bundled into one multi-megabyte file. The major pages (gene, region, variant, structural variant, etc) can be split into separate bundles and loaded on demand.

https://reactjs.org/docs/code-splitting.html https://webpack.js.org/guides/code-splitting/

nawatts commented 3 years ago

Also split help content out of entry bundle.

nawatts commented 3 years ago

As of 1d1eec15fae944c8daf272a26cb2b688417535bb, help content is no longer loaded with the entry bundle. However, all help content is still in one module and loaded when the main help page or any topic page is visited or any help popup is opened. Ideally, help topic pages and help popups should only load the relevant content.