web-performance-optimization

Diagnose and optimize website performance including Core Web Vitals, bundle size, and caching.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Slow websites hurt user experience, SEO rankings, and conversion rates. This Skill provides a systematic workflow to measure, analyze, and fix performance issues such as poor Core Web Vitals, oversized JavaScript bundles, unoptimized images, and missing caching strategies. ## Core Features & Use Cases - Performance Measurement: Establish baselines with Lighthouse audits, Core Web Vitals (LCP, FID, CLS), bundle size analysis, and network waterfall inspection. - Targeted Optimizations: Apply code splitting, lazy loading, modern image formats (WebP/AVIF), responsive images, caching headers, and critical rendering path improvements. - Use Case: Your landing page has a Lighthouse score of 62 with a 4.2s LCP. Use this Skill to identify the 2.5MB hero image and 850KB bundle as culprits, then implement image compression and code splitting to reach a score of 94. ## Quick Start Audit my website's performance and help me fix the Core Web Vitals issues slowing down my page load.

Frequently Asked Questions about web-performance-optimization

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

FAQPage Schema
How do I improve Core Web Vitals scores on my website?▼

Improve Core Web Vitals by optimizing LCP with compressed hero images and preloading, reducing FID through code splitting and deferring non-critical JavaScript, and fixing CLS by specifying image dimensions and reserving space for dynamic content.

How to reduce JavaScript bundle size in webpack?▼

Reduce bundle size by analyzing composition with webpack-bundle-analyzer, replacing heavy dependencies like moment.js with date-fns, importing lodash functions selectively, enabling tree shaking, and implementing route-based code splitting.

What image formats should I use for web performance?▼

Use AVIF for the best compression, WebP as a widely supported modern format, and optimized JPEG as a fallback. Serve them with the picture element and srcset for responsive delivery across devices.

Does lazy loading images affect SEO or LCP scores?▼

Lazy loading below-the-fold images improves performance, but never lazy load above-the-fold hero images since it delays LCP. Use loading="eager" and fetchpriority="high" for critical images instead.

Why is my website fast on desktop but slow on mobile?▼

Mobile devices have slower CPUs and networks, so JavaScript execution and large assets hurt more. Test with Chrome DevTools throttling or Lighthouse with cpuSlowdownMultiplier, and reduce main thread work and bundle sizes.

What causes high Cumulative Layout Shift and how do I fix it?▼

High CLS is caused by images without dimensions, dynamically injected content, and late-loading fonts. Fix it by setting width and height attributes, using the aspect-ratio CSS property, and reserving space with skeleton loaders.