nextjs-perf

Optimize Next.js and React performance with async, bundle, and SSR best practices.

1|2|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/cinjoff/fhhs-skills --skill nextjs-perf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-perf
Source: https://github.com/cinjoff/fhhs-skills/tree/main/.claude/skills/nextjs-perf
Command: npx skills add https://github.com/cinjoff/fhhs-skills --skill nextjs-perf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses common performance bottlenecks in Next.js and React applications, ensuring faster load times and a smoother user experience.

Core Features & Use Cases

  • Waterfall Prevention: Identifies and rectifies sequential asynchronous operations that delay rendering.
  • Bundle Size Optimization: Guides developers on reducing JavaScript payload size through dynamic imports and efficient module loading.
  • Server-Side Performance: Provides best practices for optimizing data fetching and rendering on the server.
  • Use Case: Improve the perceived performance of a Next.js e-commerce product page by ensuring images and critical data load quickly, even with complex component structures.

Quick Start

Apply the Next.js performance rules to optimize the data fetching strategy for the main page component.

Frequently Asked Questions about nextjs-perf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix sequential await waterfalls in Next.js and React?

Fixing React and Next.js waterfalls requires parallelizing asynchronous operations rather than running them sequentially. This Skill enforces rules for deferring awaits to prevent data fetching delays and ensure faster component rendering.

What is the best way to reduce JavaScript bundle size in React applications?

Reducing JavaScript bundle size in React applications involves implementing dynamic imports and efficient module loading. This optimization decreases large JavaScript payloads, ensuring faster initial load times and improved web performance.

How do I optimize server-side rendering performance for data fetching in Next.js?

Optimizing Next.js server-side rendering performance requires addressing inefficient data fetching patterns and implementing strategic suspense boundaries. This ensures data loads quickly on the server, improving the perceived performance of complex pages.

Can I use suspense boundaries strategically to improve Next.js performance?

Yes, you can use suspense boundaries strategically to improve Next.js performance. Implementing strategic suspense boundaries helps manage asynchronous operations and data fetching, preventing waterfalls and ensuring smoother user experiences.

Why does my Next.js e-commerce page load slowly despite using React best practices?

Next.js e-commerce pages load slowly due to large JavaScript payloads, waterfalls, and inefficient data fetching. Optimizing these elements through dynamic imports and parallelized operations ensures images and critical data load quickly.

When should I not use dynamic imports for bundle size optimization?

Dynamic imports for bundle size optimization should be avoided when critical data must load immediately. If deferring awaits or splitting modules delays essential rendering, maintaining standard loading patterns ensures better perceived performance.