
Web Performance Optimization
If your Lighthouse scores are in the red or users are bouncing because pages feel sluggish, this walks you through the full optimization cycle. It covers the usual suspects: bloated JavaScript bundles, unoptimized images, missing cache headers, and Core Web Vitals issues like layout shift and slow LCP. The examples are thorough, showing before and after code for things like replacing Moment.js with date-fns, implementing lazy loading, and adding proper image dimensions to prevent CLS. What's helpful is the structured approach: measure with Lighthouse, identify bottlenecks, prioritize fixes, then verify improvements. It's practical stuff for when you need to get a site from a 62 performance score to something you won't be embarrassed to ship.
- skills.sh installs
- 518
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill web-performance-optimization --agent claude-codeInstalls into .claude/skills of the current project.
Files
Web Performance Optimization
Overview
Help developers optimize website and web application performance to improve user experience, SEO rankings, and conversion rates. This skill provides systematic approaches to measure, analyze, and improve loading speed, runtime performance, and Core Web Vitals metrics.
When to Use This Skill
- Use when website or app is loading slowly
- Use when optimizing for Core Web Vitals (LCP, FID, CLS)
- Use when reducing JavaScript bundle size
- Use when improving Time to Interactive (TTI)
- Use when optimizing images and assets
- Use when implementing caching strategies
- Use when debugging performance bottlenecks
- Use when preparing for performance audits
How It Works
Step 1: Measure Current Performance
I'll help you establish baseline metrics:
- Run Lighthouse audits
- Measure Core Web Vitals (LCP, FID, CLS)
- Check bundle sizes
- Analyze network waterfall
- Identify performance bottlenecks
Step 2: Identify Issues
Analyze performance problems:
- Large JavaScript bundles
- Unoptimized images
- Render-blocking resources
- Slow server response times
- Missing caching headers
- Layout shifts
- Long tasks blocking main thread
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Category
- Debugging
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Notion Knowledge Capture516
- Screenshot Feature Extractor514
- Skill Creation Guide514
- React Patterns503
- Executing Marketing Campaigns498
- React Dev498
- Knowledge Distillation497
- Rag Implementation497
- Coding Standards494
- Api Documentation Generator493
- Autonomous Agents492
- Backend Dev Guidelines492
- Database Schema Designer489
- Typescript Expert489
- Api Patterns486
- Skill Creator484
- Supabase Postgres Best Practices481
- File Organizer480
- Research Engineer478
- Llama Cpp475
- App Builder474
- Security Review471
- Api Security Best Practices466
- Senior Secops466