react-performance

Optimize React and Next.js performance by addressing waterfalls and bundle size.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/tuyenht/Antigravity-Core --skill react-performance-tuyenht
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-performance
Source: https://github.com/tuyenht/Antigravity-Core/tree/main/.agent/skills/react-performance
Command: npx skills add https://github.com/tuyenht/Antigravity-Core --skill react-performance-tuyenht

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

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

Core Features & Use Cases

  • Waterfall Elimination: Identifies and fixes sequential asynchronous operations that slow down initial page loads.
  • Bundle Size Optimization: Reduces the amount of JavaScript sent to the client by optimizing imports and code splitting.
  • Server-Side Performance: Enhances the performance of server-rendered components and data fetching.
  • Re-render & Rendering Optimization: Improves client-side responsiveness by optimizing component updates and rendering logic.
  • Use Case: A developer can use this Skill to analyze their Next.js application, identify that data fetching is causing a significant waterfall, and apply the recommended Promise.all() pattern to drastically reduce load times.

Quick Start

Analyze the current React application for performance bottlenecks and suggest critical optimizations.

Frequently Asked Questions about react-performance

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

FAQPage Schema
How do I fix asynchronous waterfalls slowing down my Next.js application load times?

To fix asynchronous waterfalls in Next.js, identify sequential data fetching operations and apply the `Promise.all()` pattern to run them concurrently, drastically reducing initial page load times.

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

To reduce React bundle size, optimize imports and implement code splitting. This minimizes the amount of JavaScript sent to the client, ensuring faster load times and improved web performance.

How do I optimize server-side rendering performance for React components?

To optimize server-side rendering performance, enhance server-rendered components and data fetching logic. This addresses critical bottlenecks and improves the production-grade efficiency of your application.

Why does my React application experience slow client-side interactions and re-renders?

Slow React client-side interactions often stem from unoptimized component updates. Improve responsiveness by optimizing rendering logic and addressing component re-render bottlenecks.

Does this approach apply Vercel's standards for production-grade React and Next.js optimization?

Yes, this approach applies Vercel's standards for production-grade efficiency. It guides developers through a prioritized set of rules for server-side, client-side, and JavaScript performance optimizations.

Can I use these optimization rules for both React and Next.js frontend development?

Yes, you can use these optimization rules for both React and Next.js frontend development. The comprehensive rules address critical issues like bundle size reduction and rendering optimization across both frameworks.