Documentation
README
Performance Optimization
Systematic performance optimization for faster load times and reduced resource consumption.
Overview
This Skill enforces:
- Code splitting and lazy loading
- Tree shaking unused code
- Bundle size analysis
- Dynamic imports
- Image optimization
- Build configuration tuning
- Compression strategies
- Caching headers
Apply when optimizing performance, reducing bundle size, or improving load times.
Code Splitting
Route-Based Splitting
// Next.js automatically splits by route
app/
├── dashboard/page.tsx // bundle-1.js
├── settings/page.tsx // bundle-2.js
└── analytics/page.tsx // bundle-3.js
// Only loaded when user visits that route
Component-Level Splitting
This is the opening of the README. Read the full README on GitHub.