Cursor
Bundle Size Optimizer
Prompt
Act as a frontend performance engineer. Analyze this Next.js bundle and implement code splitting, dynamic imports, tree shaking optimizations, and dependency replacements to reduce the initial JS payload by at least 30%.
How to use this prompt
Copy the prompt above using the copy button
Open Cursor and start a new conversation
Paste the prompt and replace [bracketed variables] with your specifics
Look for [placeholder] text in the prompt — replace these with your specific details for best results.
Related Topics
1,303 copies102 upvotes