What problem does it solve?
This guide helps developers identify and remove performance bottlenecks in React and Next.js applications by eliminating request waterfalls, minimizing bundle size, and improving rendering efficiency to achieve faster load times and smoother interactions.
Core Features & Use Cases
- Eliminating Waterfalls: Recommendations to defer awaits, parallelize independent fetches with Promise.all, and structure data fetching to prevent sequential latency.
- Bundle Size Optimization: Guidance on avoiding barrel imports, using direct or conditional imports, and applying dynamic imports to reduce initial JavaScript payload.
- Server and Client Patterns: Best practices for server components, cross-request caching, per-request deduplication, and client-side caching strategies for efficient data fetching.
- Use Case: When auditing a Next.js application with slow LCP and long TTI, apply the rules to prioritize fixes such as parallelizing API calls, splitting heavy components, and introducing streaming/Suspense boundaries.
Quick Start
Use the react-best-practices skill to analyze my Next.js project and produce a prioritized list of top performance fixes focused on eliminating waterfalls and reducing bundle size.