perf-web-optimization

Optimize Core Web Vitals and bundle size using Lighthouse measurements and caching patterns.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/Gabrielloopes33/nexIA --skill perf-web-optimization-gabrielloopes33
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: perf-web-optimization
Source: https://github.com/Gabrielloopes33/nexIA/tree/main/.copilot/skills/perf-web-optimization
Command: npx skills add https://github.com/Gabrielloopes33/nexIA --skill perf-web-optimization-gabrielloopes33

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Web performance bottlenecks degrade user experience and conversion. This skill provides a structured approach to measure, diagnose, and implement optimizations to Core Web Vitals, bundle size, and caching.

Core Features & Use Cases

  • Measurement-driven optimization: leverage Lighthouse scores and performance APIs to identify bottlenecks for LCP, CLS, INP, and TTFB.
  • Optimization patterns: image formats (AVIF/WebP), font loading strategies, code splitting, and caching headers to reduce payloads and improve LCP and TTI.
  • Use Case: when a site loads slowly or has large layout shifts, apply the recommended patterns to optimize assets and verify improvements across pages with Lighthouse and real user metrics.

Quick Start

Analyze a site with a performance test and implement recommended optimizations to improve Core Web Vitals, bundle size, and cache strategy.

Frequently Asked Questions about perf-web-optimization

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

FAQPage Schema
How do I improve Core Web Vitals metrics like LCP and CLS for my website?

To improve Core Web Vitals metrics, use Lighthouse and performance APIs to identify bottlenecks, then apply optimization patterns like modern image formats, font loading strategies, and code splitting to reduce LCP and CLS across pages.

How do I reduce web bundle size and optimize payloads across routes?

Reduce web bundle size by implementing code splitting to lazy-load route segments and configuring caching headers. This lowers initial payloads and improves Time to Interactive across web applications.

What is the best way to optimize Largest Contentful Paint when a site loads slowly?

The best way to optimize Largest Contentful Paint is to measure TTFB and asset delivery using performance APIs, then apply image format upgrades like WebP or AVIF alongside font loading strategies to accelerate rendering.

Does web performance optimization require real user metrics to verify improvements?

Yes, web performance optimization requires verification through both Lighthouse scores and real user metrics to confirm that changes to caching headers and asset payloads actually improve LCP, CLS, and INP.

Can I use performance APIs to diagnose high layout shift and slow TTFB?

Yes, you can use performance APIs to diagnose high Cumulative Layout Shift and slow Time to First Byte by capturing real-time metrics that reveal rendering bottlenecks and network delay patterns.

Why does my web app still have poor INP after reducing bundle size?

Poor Interaction to Next Paint can persist after reducing bundle size if caching headers are misconfigured or if render-blocking assets remain. Diagnosing this requires measuring INP directly with performance APIs.