Closed umpox closed 2 years ago
Heads up @umpox @valerybugakov @5h1ru @pdubroy @taylorsperry - the "team/frontend-platform" label was applied to this issue.
Potential savings (size measured in gzip):
highlightjs
: 34kb
htmlparser2
: 23kb
marked
: 15kb
react-grid-layout:
10kb
(insights)visx
: 20kb
(insights)react-draggable
: 7kb
(insights)d3/*
related dependencies: 20kb
(insights)Potential savings: 129kb
There's quite a bit here, in my view anything that isn't part of the nav bar or 'core UI' should be lazy-loaded. Few notable files:
~main.worker.ts
: 86kb
.~ -> Fixed by https://github.com/sourcegraph/sourcegraph/pull/26610
Folder: src/enterprise/insights
: 17kb
Folder: src/site-admin
: 5kb
Potential savings: 108kb
Notes:
Potential savings: 237kb
-> ~33% decrease in app.bundle.js bundle size
Similar to https://github.com/sourcegraph/sourcegraph/issues/26348 but higher priority as it is the bundle that we load on every page.
More context: https://sourcegraph.slack.com/archives/C014ZCKMCAV/p1634827138005800
When disabling Webpack
concatenateModules