gnomad-browser icon indicating copy to clipboard operation
gnomad-browser copied to clipboard

Code split browser bundle

Open nawatts opened this issue 4 years ago • 2 comments

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 avatar Dec 17 '20 19:12 nawatts

Also split help content out of entry bundle.

nawatts avatar Dec 18 '20 01:12 nawatts

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.

nawatts avatar Mar 10 '21 18:03 nawatts