Performance Optimizations
Use these prompts to systematically find and fix performance bottlenecks in your application.
Scan
Use this prompt to conduct a thorough performance audit of your codebase.
Analyze the performance of my application and identify optimization opportunities. Given the context provided [PASTE YOUR APP CODE/DESCRIPTION HERE], scan for:
- Large bundle sizes or unnecessary imports
- Unoptimized images or media
- Render blocking resources
- Memory leaks or inefficient state management
- Slow loops or redundant calculations
- Missing lazy loading opportunities
- Database query inefficiencies (if applicable)
Provide a detailed report with specific line numbers and severity ratings (High/Medium/Low) for each issue found.Build
Once you have a performance report, use this prompt to have the AI implement the required optimizations.
Based on the performance issues identified [PASTE PERFORMANCE REPORT HERE], implement all optimization fixes for my application [PASTE YOUR APP CODE HERE].
Apply best practices including:
- Code splitting and lazy loading
- Image optimization and lazy loading
- Memoization for expensive calculations
- Debouncing/throttling for frequent events
- Efficient state updates
- Asset compression and minification
Provide the complete optimized code with comments explaining each performance improvement.