Skip to content
Back to skills

Web Performance

ASecurity

Web and frontend performance optimization. Use when user asks to "optimize performance", "improve loading time", "lazy loading", "code splitting", "bundle size", "Core Web Vitals", "image optimization", "CSS/JS minification", "caching strategies", "performance profiling", or mentions web performance and user experience metrics.

  • 225 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 4, 2026
developmentjavascriptgojavareactfrontendperformancedocumentation

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill web-performance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Web Performance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Web Performance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-web-performance/badge)](https://www.skillsdirectory.com/skills/neversight-web-performance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: web-performance
description: Web and frontend performance optimization. Use when user asks to "optimize performance", "improve loading time", "lazy loading", "code splitting", "bundle size", "Core Web Vitals", "image optimization", "CSS/JS minification", "caching strategies", "performance profiling", or mentions web performance and user experience metrics.
---

# Web Performance Optimization

Strategies and techniques for optimizing web application performance and user experience.

## Core Web Vitals

### Largest Contentful Paint (LCP)
- Time to largest content element visible
- Target: < 2.5 seconds
- Optimize: image size, server response, render-blocking resources

### First Input Delay (FID)
- Time for page to respond to user input
- Target: < 100 milliseconds
- Optimize: reduce JavaScript, break up tasks

### Cumulative Layout Shift (CLS)
- Visual stability of page
- Target: < 0.1
- Optimize: reserve space for images/ads, avoid layout disruptions

## Performance Metrics

| Metric | Target | Tool |
|--------|--------|------|
| First Contentful Paint (FCP) | < 1.8s | Chrome DevTools |
| Largest Contentful Paint (LCP) | < 2.5s | Lighthouse |
| Time to Interactive (TTI) | < 3.8s | WebPageTest |
| Total Blocking Time (TBT) | < 150ms | Lighthouse |

## Optimization Techniques

### Image Optimization
```html
<!-- Lazy loading -->
<img src="image.jpg" loading="lazy">

<!-- Responsive images -->
<picture>
  <source media="(max-width: 500px)" srcset="small.jpg">
  <img src="large.jpg" alt="Description">
</picture>

<!-- Modern formats -->
<picture>
  <source type="image/webp" srcset="image.webp">
  <img src="image.jpg" alt="Description">
</picture>
```

### Code Splitting
```javascript
// Dynamic import
const module = await import('./heavy-module');

// React lazy loading
const Component = React.lazy(() => import('./Component'));
```

### Caching Strategies
- Browser cache: Set Cache-Control headers
- Service workers: Offline support and cache control
- CDN: Distribute content geographically
- Redis: Server-side caching

### Minification & Compression
- Minify CSS, JavaScript, HTML
- Gzip compression
- Brotli for better compression
- Remove unused code (tree shaking)

## Performance Audit Checklist

- [ ] Optimize images (format, size, lazy load)
- [ ] Minify CSS, JS, HTML
- [ ] Enable gzip/brotli compression
- [ ] Implement code splitting
- [ ] Cache static assets
- [ ] Use CDN for assets
- [ ] Optimize critical rendering path
- [ ] Remove unused dependencies
- [ ] Lazy load non-critical routes
- [ ] Optimize fonts (subset, preload)
- [ ] Implement service workers
- [ ] Monitor Core Web Vitals

## Tools for Analysis

- **Chrome Lighthouse** - Audit performance
- **WebPageTest** - Detailed analysis
- **Speedcurve** - Continuous monitoring
- **Bundle Analyzer** - Webpack/Rollup bundle size
- **Sentry** - Error and performance monitoring

## Best Practices

1. **Measure First** - Establish baseline metrics
2. **Prioritize** - Fix biggest issues first
3. **Test Impact** - Verify improvements
4. **Monitor Continuously** - Track over time
5. **User-Centric** - Focus on real user metrics

## Example Performance Budget

```
JavaScript: < 200KB
CSS: < 50KB
Images: < 500KB total
Fonts: < 100KB
Total: < 850KB
```

## References

- Web Vitals by Google
- Chrome Developers Performance
- MDN Web Performance
- Lighthouse Documentation
- WebPageTest Blog

Files in this skill

  • SKILL.md3.3 KB
  • description_ar.txt591 B
  • description_cn.txt319 B
  • description_de.txt396 B
  • description_en.txt330 B
  • description_es.txt415 B
  • description_fr.txt468 B
  • description_it.txt451 B
  • description_ja.txt574 B
  • description_ko.txt354 B
  • description_ru.txt831 B
  • description_tw.txt334 B
  • stats.json65 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.