performance-optimization

Optimizes frontend and backend bottlenecks using Lighthouse and Web Vitals profiling.

Updated Aug 21, 2021
One-click install
npx skills add https://github.com/saint2706/Coding-For-MBA --skill performance-optimization-saint2706
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-optimization
Source: https://github.com/saint2706/Coding-For-MBA/tree/main/.agents/skills/performance-optimization
Command: npx skills add https://github.com/saint2706/Coding-For-MBA --skill performance-optimization-saint2706

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses slow application performance, large bundle sizes, and inefficient resource usage, leading to a faster, smoother user experience.

Core Features & Use Cases

  • Performance Measurement: Utilizes tools like Lighthouse and Web Vitals to identify bottlenecks.
  • React Optimization: Implements techniques such as React.memo, useMemo, useCallback, and lazy loading for efficient rendering.
  • Bundle Size Reduction: Employs tree shaking and dynamic imports to minimize load times.
  • Image Optimization: Suggests modern formats like WebP and efficient loading strategies.
  • Database Query Optimization: Provides strategies to fix N+1 queries, add indexes, and implement caching.
  • Use Case: Improve your React application's Lighthouse score from 60 to 90 by implementing code splitting, optimizing images, and caching API responses.

Quick Start

Use the performance-optimization skill to measure the current performance of your application using Lighthouse and identify areas for improvement.

Frequently Asked Questions about performance-optimization

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

FAQPage Schema
How do I identify frontend performance bottlenecks using Lighthouse and Web Vitals?

To identify frontend performance bottlenecks, measure page load times and rendering speed using Lighthouse and Web Vitals. This process isolates inefficient resource usage and large bundle sizes, providing actionable metrics to resolve slow application performance.

What is the best way to optimize React rendering speed and reduce bundle size?

Optimizing React rendering speed and bundle size involves implementing React.memo, useMemo, and useCallback for efficient rendering, combined with tree shaking, code splitting, and dynamic imports to minimize JavaScript load times.

How do I fix slow database queries and implement caching for my application?

Fixing slow database queries requires resolving N+1 query patterns, adding appropriate database indexes, and implementing caching mechanisms. These strategies directly improve backend resource efficiency and reduce overall API response latency.

When should I use lazy loading and image optimization in web applications?

Use lazy loading and image optimization when experiencing slow page load times due to large assets. Converting images to modern formats like WebP and employing efficient loading strategies significantly reduces initial bundle weight and improves user experience.

Can I improve my Lighthouse score by implementing code splitting and API caching?

You can improve your Lighthouse score by implementing code splitting to reduce bundle size and caching API responses to minimize network latency. These techniques target inefficient resource usage to create a faster, smoother frontend experience.