performance-optimization

Profile React web apps with Lighthouse and Web Vitals to reduce LCP and CLS.

8|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/JEO-tech-ai/oh-my-unity3d --skill performance-optimization-jeo-tech-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-optimization
Source: https://github.com/JEO-tech-ai/oh-my-unity3d/tree/main/.unity-skills/performance-optimization
Command: npx skills add https://github.com/JEO-tech-ai/oh-my-unity3d --skill performance-optimization-jeo-tech-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Web and mobile applications often suffer from performance bottlenecks that degrade user experience and inflate costs. This Skill provides a repeatable methodology to measure, diagnose, and apply optimizations across frontend and backend layers to deliver faster, more efficient apps.

Core Features & Use Cases

  • Measurement-first workflow: profile performance using Lighthouse, Web Vitals, and runtime tracing to identify bottlenecks.
  • Frontend optimizations: optimize React rendering with memoization, useMemo/useCallback, code-splitting, and image optimizations.
  • Code and bundle hygiene: reduce bundle size via tree-shaking, dynamic imports, and dependency auditing; improve caching strategies.
  • Use Case: for a slow React app, identify CLS/LCP regressions, implement memoization and code-splitting to achieve a smoother user experience.

Quick Start

Profile your React app to locate the top performance bottlenecks and apply targeted optimizations.

Frequently Asked Questions about performance-optimization

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

FAQPage Schema
How do I reduce LCP and CLS in a slow React app?

To reduce LCP and CLS in a slow React app, profile performance using Lighthouse and Web Vitals to identify bottlenecks, then apply targeted optimizations like memoization, code-splitting, and image enhancements to improve loading and visual stability.

What is the best way to decrease React bundle size?

The best way to decrease React bundle size is applying tree-shaking, dynamic imports, and dependency auditing to eliminate unused code, complemented by code-splitting strategies to load JavaScript more efficiently.

When should I use React.memo, useMemo, and useCallback for performance optimization?

Use React.memo, useMemo, and useCallback for performance optimization when profiling reveals unnecessary component re-renders or expensive calculations, applying them to memoize components and values to improve app interactivity.

Does this performance optimization workflow work with server-rendered pages and SPAs?

Yes, this performance optimization workflow supports server-rendered pages and SPAs by measuring runtime tracing and Web Vitals bottlenecks across frontend layers, applying targeted caching and rendering improvements to reduce load times.

Why does my React app still have poor Web Vitals after using lazy-loading?

Your React app may still have poor Web Vitals after lazy-loading if underlying bundle hygiene issues remain, requiring further dependency auditing, tree-shaking, and caching strategies to resolve hidden performance bottlenecks.