This guide gives prioritized HTML, CSS, and JavaScript techniques for improving Core Web Vitals, including responsive images, resource preloading, interaction handling, and layout stability. It also shows Lighthouse CI and Web Vitals checks, followed by a performance checklist.
86%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Improve LCP, INP, and CLS systematically.
Prioritized Fixes:
Optimize images (Biggest impact)
<!-- 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"
/>Preload LCP resource
<link rel="preload" as="image" href="/hero.webp" fetchpriority="high" />Inline critical CSS
<style>
/* Above-the-fold styles */
.hero {
display: flex;
height: 100vh;
}
</style>Use CDN
Fixes:
Debounce expensive interactions
import { debounce } from "lodash";
const handleSearch = debounce((query) => {
fetchResults(query);
}, 300);Use Web Workers for heavy tasks
const worker = new Worker("processor.js");
worker.postMessage(largeData);
worker.onmessage = (e) => console.log(e.data);Code splitting
const HeavyComponent = lazy(() => import("./HeavyComponent"));Fixes:
Reserve space for images/ads
<img src="banner.jpg" width="1200" height="600" />Use CSS aspect-ratio
.video-container {
aspect-ratio: 16 / 9;
}Avoid injecting content above existing
.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);sathishssj3/Stereix-Engine
1e0ee85
npmnpm runnpm run lighthouseLighthouse CIhttps://example.comIf you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.