What problem does it solve?
This Skill codifies Vercel Engineering's best practices to eliminate common React and Next.js performance pitfalls—especially sequential data-fetching waterfalls, oversized bundles, and server-client serialization overhead—that slow load times and increase user-perceived latency.
Core Features & Use Cases
- Waterfall elimination: Patterns and examples to defer awaits, parallelize dependent tasks, and start promises early in API routes and Server Actions.
- Bundle optimization: Guidance on avoiding barrel imports, using dynamic imports, deferring non-critical libraries, and preloading based on user intent.
- Server & client data strategies: Recommendations for React.cache(), cross-request LRU caches, Suspense boundaries, SWR deduplication, and minimizing RSC serialization for efficient server rendering.
- Use Case: Automate an audit of a Next.js page to identify blocking awaits, large initial imports, and RSC serialization bloat, then produce targeted refactors to improve TTI and LCP.
Quick Start
Use this skill to audit a Next.js page and recommend concrete refactors to remove waterfalls, split heavy bundles, and reduce server-side serialization.