Closed Odonno closed 1 month ago
Use code-splitting techniques to reduce initial bundle size and to improve startup time performance.
Improvements made:
lottie-web
Some notes:
elk
lottie-light
manualChunks
experimentalMinChunkSize
5000
Remaining:
icons.tsx
Before:
After:
Looks good, thanks!
Use code-splitting techniques to reduce initial bundle size and to improve startup time performance.
Improvements made:
lottie-web
. It will be fetched on the main page but after the initial bundlesSome notes:
elk
can be loaded via web worker, but as it is currently lazy imported when needed, I don't see the need for thislottie-light
instead oflottie-web
, from 7.27MB to 7.04MB (1.83MB -> 1.79MB gzip)manualChunks
to split each bundleexperimentalMinChunkSize
to5000
, having too many small chunks can be badRemaining:
icons.tsx
are not splitted, should break icon per each fileBefore:
After: