performanceWeb Platform
LCP Hero Optimization
MUST
MUST: LCP images (hero, banner): Use `loading="eager"` + `fetchpriority="high"` + `decoding="async"`. Add `<link rel="preload" as="image">` in head. NEVER lazy-load above-the-fold content.
Preload above-the-fold images and prioritize LCP elements for fast perceived loading
Bad
Good
Why it matters
Largest Contentful Paint (LCP) is a Core Web Vital measuring when the largest content becomes visible. Hero images are often the LCP element. Preloading and eager loading ensures they render as fast as possible.
References