performance

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

Updated Aug 28, 2026
One-click install
npx skills add https://github.com/trobias/portfolio-nextjs-v2 --skill performance-trobias
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: performance
Source: https://github.com/trobias/portfolio-nextjs-v2/tree/main/.agents/skills/performance
Command: npx skills add https://github.com/trobias/portfolio-nextjs-v2 --skill performance-trobias

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Slow page loads, heavy JavaScript bundles, unoptimized images, and render-blocking resources degrade user experience and hurt Core Web Vitals scores. This Skill provides a structured audit workflow to identify bottlenecks and apply concrete optimizations with code examples. ## Core Features & Use Cases - Performance Budgets: Enforce limits on page weight, JavaScript, CSS, images, fonts, and third-party scripts. - Critical Rendering Path Optimization: Apply preconnect, preload, deferred scripts, code splitting, and tree shaking patterns. - Asset Optimization: Implement responsive images with AVIF/WebP, font loading strategies with font-display, and caching headers. - Use Case: A Next.js site scores poorly on Lighthouse. Use this Skill to audit the LCP image, defer non-critical JavaScript, add cache headers, and measure before/after improvements. ## Quick Start Audit my website's performance and give me prioritized 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, and reducing server response time below 800ms TTFB. Target an LCP under 2.5 seconds measured with Lighthouse or CrUX data.

How to reduce JavaScript bundle size for faster loading?▼

Reduce bundle size with route-based and component-based code splitting using dynamic imports, and tree shaking by importing only needed functions like lodash/debounce instead of the full library. Keep compressed JavaScript under 300 KB.

What image format should I use for web performance?▼

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

Does lazy loading hurt LCP scores?▼

Lazy loading hurts LCP when applied to above-fold hero images. Set loading="eager" and fetchpriority="high" on the LCP image, and reserve loading="lazy" for below-fold images only.

Why is my site slow despite good Lighthouse scores locally?▼

Local Lighthouse runs use lab conditions that differ from real-user field data. Third-party scripts, uncontrolled latency, and slow networks cause gaps; measure with CrUX field data and the web-vitals library for real-user metrics.