Loading...
Loading...
Systematically improves Largest Contentful Paint (LCP), Interaction to Next Paint (INP), and Cumulative Layout Shift (CLS) with prioritized fixes and verification. Use for "Core Web Vitals", "performance", "LCP", "INP", or "CLS".
npx skill4agent add patricio0312rev/skills core-web-vitals-tuner<!-- Before -->
<img src="hero.jpg" />
<!-- After -->
<img
src="hero.jpg"
srcset="hero-400.webp 400w, hero-800.webp 800w, hero-1200.webp 1200w"
sizes="(max-width: 600px) 400px, (max-width: 1200px) 800px, 1200px"
loading="eager"
fetchpriority="high"
/><link rel="preload" as="image" href="/hero.webp" fetchpriority="high" /><style>
/* Above-the-fold styles */
.hero {
display: flex;
height: 100vh;
}
</style>import { debounce } from "lodash";
const handleSearch = debounce((query) => {
fetchResults(query);
}, 300);const worker = new Worker("processor.js");
worker.postMessage(largeData);
worker.onmessage = (e) => console.log(e.data);const HeavyComponent = lazy(() => import("./HeavyComponent"));<img src="banner.jpg" width="1200" height="600" />.video-container {
aspect-ratio: 16 / 9;
}.notification {
position: fixed;
top: 0;
}# Lighthouse CI
npm run lighthouse -- --url=https://example.com
# Web Vitals in production
import { getCLS, getFID, getLCP } from 'web-vitals';
getCLS(console.log);
getFID(console.log);
getLCP(console.log);