Bundle Analysis
Keeping the amount of JavaScript and assets in your application to a minimum will help improve startup and runtime performance.
You can use the extension to analyze what JavaScript bundles and assets contribute to the bloat of your application to help decide if current or new dependencies should be used or removed.
Bundle Cost
Section titled “Bundle Cost”Click Configuration > Statistics to see a page breaking down the size of each JavaScript bundle.
- You can click a bundle to
expandorcollapseit showing what bundles are inside. — Clicking a bundle will visit the compiled JavaScript file - The process of bundle analysis will build your application in production with source maps turned on.
Asset Cost
Section titled “Asset Cost”Click Configuration > Statistics to see a page (you will need to scroll down) breaking down the the size of all assets in your app.
This includes fonts, icons, style sheets, images and other files.
Use this tool to identify:
- Fonts that are too large, or have formats that you do not need (eg
ttfwhen you already havewoff2orwoffversions) - Images that are too large, perhaps using inappropriate image formats (eg using a
png,giffor a photographic image)