Optimize frontend bundle size
Cut frontend bundle size with code splitting, tree shaking, lazy loading, and library swaps. Prioritised by estimated impact on load time.
Preview
Copy prompt
My [Framework] application has a JavaScript bundle size of approximately [X MB]. Here is the build config and a list of the most significant dependencies: [Paste config and deps]. Suggest concrete, actionable steps to reduce the bundle size including route-level code splitting, tree shaking unused exports, lazy loading below-the-fold content, replacing heavy libraries with lighter alternatives, and optimizing image assets. Rank each suggestion by estimated impact.
More
Performance
Prompts
