What problem does it solve?
React and Next.js projects often suffer from performance regressions due to waterfalls, large bundles, and mismatched server-client data handling. This skill provides a centralized, vetted set of best practices to help teams identify, diagnose, and fix these issues quickly.
Core Features & Use Cases
- Eliminate waterfalls: guidance on parallelizing data fetching and deferring work to avoid blocking paths.
- Bundle size optimization: strategies to avoid barrel imports, lazy-load heavy modules, and preload content based on user intent.
- Server-side & client performance: patterns to secure server actions, minimize serialization, parallelize data fetching with composition, and optimize client data fetches.
- Use Case: when refactoring a Next.js dashboard, apply these rules to reduce TTI and improve time-to-interactive.
Quick Start
Start by auditing a component or page with a known bottleneck, map to the closest rule (e.g., avoid barrel imports, use Promise.all for independent fetches), implement the recommended changes, and re-run the build and performance tests.