Skip to content
secondsky avatar

Web Performance Optimization

Reference guide for web performance work: code splitting, lazy loading, caching, compression, and Core Web Vitals tracking.

CCM score
51 of 100
skills.sh installs
594
GitHub stars
257
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers page-load speedups across route-level code splitting, image lazy loading, service worker caching, and gzip compression
  • Includes React lazy/Suspense routing, a webpack splitChunks vendor config, a <picture> image pattern, and LCP, CLS, and INP observers
  • Lists target thresholds in a table: LCP under 2.5s, INP under 200ms, CLS under 0.1, and TTI under 3.8s
  • Designed for teams improving Core Web Vitals, bundle sizes, or mobile load times in React and webpack-based apps

Install

$ npx -y skills add secondsky/claude-skills --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

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

Code Splitting (React)

import { lazy, Suspense } from 'react';
import { Routes, Route } from 'react-router-dom';

const Home = lazy(() => import('./pages/Home'));
const Dashboard = lazy(() => import('./pages/Dashboard'));
const Settings = lazy(() => import('./pages/Settings'));

function App() {
  return (
    <Suspense fallback={<Loading />}>
      <Routes>
        <Route path="/" element={<Home />} />
        <Route path="/dashboard" element={<Dashboard />} />
        <Route path="/settings" element={<Settings />} />
      </Routes>
    </Suspense>
  );
}

Webpack Bundle Optimization

Details

Repository
github.com/secondsky/claude-skills
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 page load times through code splitting, lazy loading, caching strategies, and Core Web Vitals monitoring. It also covers implementing service workers and reducing bundle sizes in web applications.

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

Run this command in a project: npx -y skills add secondsky/claude-skills --skill web-performance-optimization -y. After installing, the agent can apply web-performance-optimization guidance to lazy load routes, configure gzip compression and track LCP, CLS and INP.

Which skills lead the Frontend & UI Code category on Claude Marketplaces?

Within Frontend & UI Code, web-performance-optimization sits alongside vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps. Its own focus is performance work such as code splitting, caching and Core Web Vitals rather than React patterns or design rules.

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

Use the web-performance-optimization skill when page load times are slow, Largest Contentful Paint is high, bundles are large, layout shift is frequent or mobile performance is poor. It also fits tasks that involve implementing service worker caching.

More from secondsky/claude-skills

All 116

Similar to Web Performance Optimization

More Frontend & UI Code