aj-geddes avatar

Web Performance Optimization

This is your comprehensive toolkit for fixing slow web apps. It covers the standard performance playbook: code splitting and lazy loading for React, image optimization, HTTP caching with service workers, compression, and monitoring setup. The skill gives you working examples for each area, from lazy route loading to Core Web Vitals tracking. It's most useful when you're staring at red Lighthouse scores or poor LCP/CLS metrics and need proven patterns to methodically improve them. The reference guides break down each optimization strategy into implementable chunks, so you're not piecing together blog posts at 2am trying to figure out why your bundle is still 3MB.

skills.sh installs
487
GitHub stars
379
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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)

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
DevOps & CI/CD, AI & Agent Building, Debugging
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1aj-geddes avatarzero-trust-architectureaj-geddes/useful-ai-promptsImplement Zero Trust security model with identity verification, microsegmentation, least privilege access, and continuous monitoring. Use when building secure c487skills.sh installs
2hkuds avatarcli-anything-rmshkuds/cli-anythingTeltonika RMS device management and monitoring CLI485skills.sh installs
3parcadei avatarmcp-chainingparcadei/continuous-claude-v3Research-to-implement pipeline chaining 5 MCP tools with graceful degradation483skills.sh installs
4webmaxru avataragent-package-managerwebmaxru/ai-native-devInstalls, configures, audits, and operates Agent Package Manager (APM) in repositories. Use when initializing apm.yml, installing or updating packages, validati481skills.sh installs
5h1an1 avatarhealth-coachh1an1/health-coachComprehensive personal health management: body composition tracking, meal photo analysis with clinical-grade nutritional breakdown, exercise logging, medical la479skills.sh installs
6jezweb avatarai-sdk-corejezweb/claude-skillsBuild backend AI with Vercel AI SDK v6 stable. Covers Output API (replaces generateObject/streamObject), speech synthesis, transcription, embeddings, MCP tools 479skills.sh installs