Optimization cheat sheet

A quick reference to every method, its benefit and the page that covers it.

Updated

Web optimization methods
CategoryMethodBenefitExample
Core Web VitalsLCP ≤ 2.5 sFaster perceived loadingPreloaded LCP image, fetchpriority="high"
Core Web VitalsINP ≤ 200 msSmooth interactionsShort JS tasks, defer
Core Web VitalsCLS ≤ 0.1Stable layoutwidth/height, font-display
LoadingLazy loading, Preload, defer & async, Speculation RulesFaster initial render and navigation<img loading="lazy">
Crawlrobots.txt, sitemap.xmlControlled crawling and indexingDisallow: /admin/
ServerCaching, Brotli/gzip, HTTP/3, redirectsFewer requests, lighter transfersAddOutputFilterByType DEFLATE text/html
ImagesAVIF/WebP, srcsetLighter pages<picture>
AccessibilityLandmarks, 4.5:1 contrast, captionsUsable by everyone<nav aria-label="…">