performance

Diagnose and optimize web performance bottlenecks affecting Core Web Vitals and load speed.

Updated Jun 30, 2026
One-click install
npx skills add https://github.com/kaitoartz/dotfiles --skill performance-kaitoartz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: performance
Source: https://github.com/kaitoartz/dotfiles/tree/main/dot_agents/skills/performance
Command: npx skills add https://github.com/kaitoartz/dotfiles --skill performance-kaitoartz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Slow page loads, render-blocking resources, and unoptimized assets hurt user experience and search rankings. This Skill identifies performance bottlenecks in code and assets, prioritizes fixes by Core Web Vitals impact, and provides concrete optimization patterns with code examples. ## Core Features & Use Cases - Critical Rendering Path Optimization: Guidance on TTFB, compression, HTTP/2+, Early Hints, preconnect, preload, and Speculation Rules prerendering. - Asset Optimization: Performance budgets, responsive image formats (AVIF/WebP), font loading strategies with font-display and variable fonts, and code splitting/tree shaking for JavaScript. - Runtime & Caching: Layout thrashing fixes, debouncing, requestAnimationFrame, list virtualization, View Transitions, Cache-Control headers, and service worker caching. - Use Case: A Lighthouse audit shows a 4.2s LCP on your landing page. Use this Skill to preload the hero image with fetchpriority="high", defer non-critical CSS, and add Early Hints to cut LCP below 2.5s. ## Quick Start Audit my site's performance and give me prioritized optimizations to improve LCP and reduce total page weight.

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 so browsers fetch critical resources before the full response arrives.

How to reduce JavaScript bundle size for faster page loads?▼

Reduce bundle size with route-based and component-based code splitting using dynamic imports, tree shaking by importing specific functions instead of entire libraries, and keeping compressed JavaScript under 300 KB per the performance budget.

What image format should I use for web performance?▼

Use AVIF for photos with the best compression at 92%+ browser support, WebP as a widely supported fallback at 97%+, PNG for graphics needing transparency, and SVG for icons and logos. Serve them with the picture element and responsive srcset.

Does font-display swap prevent invisible text during loading?▼

Yes, font-display: swap shows fallback system fonts immediately while the custom font loads, preventing FOIT. 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 times?▼

Slow rendering despite fast TTFB usually comes from render-blocking CSS, parser-blocking scripts, layout thrashing, or heavy third-party scripts. Defer non-critical CSS and JavaScript, batch DOM reads and writes, and load third-party widgets with facades or IntersectionObserver.

What are the limitations of lazy loading images?▼

Lazy loading below-fold images saves bandwidth, but applying it to the LCP image delays discovery and hurts the LCP score. Above-fold images should use loading="eager" with fetchpriority="high" and explicit width and height attributes.