Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aj-geddes avatar

Web Performance Optimization

  • 434 installs
  • 305 repo stars
  • Updated March 4, 2026
  • aj-geddes/useful-ai-prompts

web-performance-optimization is an agent skill that audits and optimizes Core Web Vitals, JavaScript bundle weight, caching, and render paths for developers shipping fast web pages.

About

web-performance-optimization is an agent skill from aj-geddes/useful-ai-prompts for improving front-end load performance before launch. It guides audits of Core Web Vitals—LCP, INP, and CLS—plus JavaScript bundle weight, HTTP caching, CDN configuration, and critical render paths on mobile networks. Use it when Lighthouse or Search Console flags regressions, conversion drops trace to slow first paint, or SEO ranking depends on passing CWV thresholds. The skill connects measurement to concrete fixes: code splitting, lazy loading, cache headers, font and image delivery, and eliminating render-blocking resources rather than generic best-practice lists.

  • Core Web Vitals audit prompts
  • Bundle and lazy-load tactics
  • Image and font optimization
  • Caching and CDN guidance
  • Lab versus field measurement

Web Performance Optimization by the numbers

  • 434 all-time installs (skills.sh)
  • Ranked #648 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill web-performance-optimization

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs434
repo stars305
Last updatedMarch 4, 2026
Repositoryaj-geddes/useful-ai-prompts

How do you improve Core Web Vitals before launch?

Audit and optimize Core Web Vitals, bundle weight, caching, and render paths so pages load fast on mobile networks and meet SEO and conversion expectations before launch.

Who is it for?

Front-end developers shipping marketing or app pages that must pass Core Web Vitals on mobile networks and meet SEO performance expectations.

Skip if: Pure backend API latency tuning with no browser render path or asset delivery involved.

When should I use this skill?

Lighthouse scores drop, Search Console reports CWV failures, or a developer asks to reduce bundle weight and improve LCP before release.

What you get

Performance audit notes, bundle reduction plan, caching configuration, and Core Web Vitals remediation checklist

  • CWV audit report
  • Bundle optimization plan
  • Caching configuration

Files

SKILL.mdMarkdownGitHub ↗

Web Performance Optimization

Table of Contents

Overview

Implement performance optimization strategies including lazy loading, code splitting, caching, compression, and monitoring to improve Core Web Vitals and user experience.

When to Use

  • Slow page load times
  • High Largest Contentful Paint (LCP)
  • Large bundle sizes
  • Frequent Cumulative Layout Shift (CLS)
  • Mobile performance issues

Quick Start

Minimal working example:

// utils/lazyLoad.ts
import React from 'react';

export const lazyLoad = (importStatement: Promise<any>) => {
  return React.lazy(() =>
    importStatement.then(module => ({
      default: module.default
    }))
  );
};

// routes.tsx
import { lazyLoad } from './utils/lazyLoad';

export const routes = [
  {
    path: '/',
    component: () => import('./pages/Home'),
    lazy: lazyLoad(import('./pages/Home'))
  },
  {
    path: '/dashboard',
    lazy: lazyLoad(import('./pages/Dashboard'))
  },
  {
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Code Splitting and Lazy Loading (React)Code Splitting and Lazy Loading (React)
Image OptimizationImage Optimization
HTTP Caching and Service WorkersHTTP Caching and Service Workers
Gzip Compression and Asset OptimizationGzip Compression and Asset Optimization
Performance MonitoringPerformance Monitoring

Best Practices

✅ DO

  • Follow established patterns and conventions
  • Write clean, maintainable code
  • Add appropriate documentation
  • Test thoroughly before deploying

❌ DON'T

  • Skip testing or validation
  • Ignore error handling
  • Hard-code configuration values

Related skills

How it compares

Use web-performance-optimization for browser CWV and asset delivery; pair with backend skills only when API latency—not render path—is the bottleneck.

FAQ

What metrics does web-performance-optimization focus on?

web-performance-optimization centers on Core Web Vitals—Largest Contentful Paint, Interaction to Next Paint, and Cumulative Layout Shift—alongside JavaScript bundle weight, HTTP caching, and render-blocking resource removal.

When should web-performance-optimization run?

web-performance-optimization fits pre-launch audits when Lighthouse or Search Console flags CWV regressions, or when mobile load times threaten SEO rankings and conversion rates on slow networks.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.