Web performance optimization

From bobmatnyc/claude-mpm-skills · View interactive version

Web performance optimization is an AI agent skill from the GitHub repository bobmatnyc/claude-mpm-skills. Optimize web performance using Core Web Vitals, modern patterns (View Transitions, Speculation Rules), and framework-specific techniques

How to use this skill

Skill file

Web Performance Optimization

Optimize web performance through Core Web Vitals, modern browser APIs (View Transitions, Speculation Rules), and framework-specific techniques.

When to Use This Skill

Business Impact: 1 second delay = 7% conversion loss. 0.1s improvement = 8% increase in conversions.

Start Here: Quick Wins

High-ROI optimizations by time investment:

1 Hour Quick Wins (⭐⭐⭐⭐⭐ ROI):

1 Day Investments (⭐⭐⭐⭐ ROI):

1 Week Comprehensive (⭐⭐⭐⭐⭐ ROI):

→ See quick-wins.md for complete implementation details

Core Web Vitals at a Glance

| Metric | Target | Weight | Key Optimization |

|--------|--------|--------|------------------|

| LCP (Largest Contentful Paint) | <2.5s | 25% | Optimize images, preload critical resources |

| INP (Interaction to Next Paint) | <200ms | 30% | Reduce JavaScript, break up long tasks |

| CLS (Cumulative Layout Shift) | <0.1 | 25% | Reserve space, optimize fonts |

| TBT (Total Blocking Time) | <200ms | 30% | Code splitting, defer non-critical JS |

| FCP (First Contentful Paint) | <1.8s | 10% | Eliminate render-blocking resources |

→ See core-web-vitals.md for deep dive on each metric

Modern Patterns (2025)

View Transitions API - Smooth page transitions without JavaScript

@view-transition { navigation: auto; }

Speculation Rules API - Prerender pages for instant navigation

React Server Components - Zero-bundle server components

Priority Hints - fetchpriority="high" for LCP optimization

Content Visibility - CSS-based rendering optimization

→ See modern-patterns-2025.md for cutting-edge techniques

Navigation

Quick Start (Load First)

Deep Dives

Modern Features

Framework-Specific

Measurement & Monitoring

Key Reminders

Red Flags

Stop and reconsider if:

Integration with Other Skills

Real-World Impact

Conversion Impact:

SEO Impact:


Remember: Performance is a feature, not an afterthought. Every millisecond counts. Start with Quick Wins for immediate impact.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.