Skip to content
aj-geddes avatar

Web Performance Optimization

Practical web performance guide that covers lazy loading, caching, compression, and monitoring for Core Web Vitals.

CCM score
37 of 100
skills.sh installs
488
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers code splitting and lazy loading in React, image optimization, HTTP caching with service workers, gzip compression, and performance monitoring
  • Includes five reference guides in a references/ directory, each with detailed implementations and a quick-start routing example
  • Targets slow page loads, high Largest Contentful Paint, large bundle sizes, frequent Cumulative Layout Shift, and mobile performance issues
  • Designed for teams improving Core Web Vitals and user experience in React-based web applications

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill web-performance-optimization -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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)

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Category
Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the web-performance-optimization skill do?

The web-performance-optimization skill helps improve web application speed using code splitting, lazy loading, caching, compression, and monitoring. It targets Core Web Vitals and overall user experience, so an agent can apply these techniques to your web-performance-optimization workflow in a project.

When should I use the web-performance-optimization skill?

Use the web-performance-optimization skill for slow page load times, high Largest Contentful Paint, large bundle sizes, frequent Cumulative Layout Shift, or mobile performance issues. The skill includes reference guides on React code splitting, image optimization, HTTP caching with service workers, gzip compression, and performance monitoring.

How do I install the web-performance-optimization skill?

Run npx -y skills add aj-geddes/useful-ai-prompts --skill web-performance-optimization -y inside your project. After installation, the web-performance-optimization skill lets your agent apply lazy loading and code splitting patterns from its Quick Start example.

More from aj-geddes/useful-ai-prompts

All 258

Similar to Web Performance Optimization

More Frontend & UI Code