performance

Diagnose and optimize web page performance across loading, rendering, and runtime layers.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/RavitejaKarra24/dotfiles --skill performance-ravitejakarra24
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance
Source: https://github.com/RavitejaKarra24/dotfiles/tree/main/agents/.agents/skills/performance
Command: npx skills add https://github.com/RavitejaKarra24/dotfiles --skill performance-ravitejakarra24

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Slow websites lose users and rank poorly in search. This Skill provides a systematic, Lighthouse-based approach to finding and fixing performance bottlenecks, from server response times to JavaScript execution, so pages meet Core Web Vitals targets. ## Core Features & Use Cases - Performance Budgets: Concrete limits for page weight, JavaScript, CSS, images, fonts, and third-party scripts to keep load times under control. - Critical Rendering Path Optimization: Guidance on TTFB, compression, HTTP/2+, Early Hints, preconnect, preload, and deferred CSS/JS loading. - Asset Optimization: Responsive image patterns (AVIF/WebP/srcset), font loading strategies with font-display and variable fonts, and caching headers plus service worker caching. - Runtime Efficiency: Fixes for layout thrashing, debouncing, requestAnimationFrame, list virtualization, View Transitions, and third-party script facades. - Use Case: A product page loads in 6 seconds with a poor LCP score. Use this Skill to identify the unoptimized hero image, add fetchpriority and preload hints, defer non-critical scripts, and verify improvement with Lighthouse. ## Quick Start Ask the agent to audit my page for performance issues and suggest optimizations to improve LCP and reduce JavaScript bundle size.

Frequently Asked Questions about performance

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

FAQPage Schema
How do I improve LCP on my website?

Improve LCP by preloading the hero image with fetchpriority="high", using modern formats like AVIF or WebP, reducing TTFB below 800ms with CDN edge caching, and sending HTTP 103 Early Hints for critical resources. Target an LCP under 2.5 seconds.

How to reduce JavaScript bundle size for faster page loads?

Keep compressed JavaScript under 300 KB using route-based and component-based code splitting with dynamic imports, tree shaking (import specific functions like lodash/debounce instead of the whole library), and deferring non-essential scripts with the defer or async attributes.

What image format should I use for web performance?

Use AVIF for photos where supported (92%+ browsers) with WebP as fallback and JPEG as the final fallback via the picture element. Use SVG for icons and logos, and PNG only when transparency is required in graphics.

Does font-display swap affect page performance?

font-display: swap prevents invisible text (FOIT) by showing fallback fonts immediately while custom fonts load, improving perceived performance. Combine it with preloading critical woff2 fonts, unicode-range subsetting, and variable fonts to reduce total font weight under 100 KB.

Why is my page slow despite fast server response?

Slow rendering despite good TTFB usually comes from render-blocking CSS/JavaScript, layout thrashing from interleaved DOM reads and writes, unvirtualized long lists, or heavy third-party scripts. Batch DOM operations, defer scripts, and use facade patterns for embeds.

What are the limits of third-party script optimization?

Third-party scripts remain outside your control even with async loading, lazy loading via IntersectionObserver, or facade patterns. Keep total third-party weight under 200 KB, and accept that their latency and main-thread cost can only be mitigated, not eliminated.