Menu

1 / 2

Never lazy-load your LCP image: the fetchpriority, preload and srcset checklist

DEV Community: frontend·Sahadat Husain·3 days ago
#DU2ie2yb
#devtofrontend#devto#dev#high#lazy
Long article (313 words) — no AI summary yet.
Reading 0:00
15s threshold

A Core Web Vitals tip: never lazy-load the image that decides your LCP (Largest Contentful Paint). Give it fetchpriority="high" , leave loading out, and add a preload only when the HTML can't show the image.

The 2025 Web Almanac still finds 16–17% of pages lazy-loading their LCP image. Only 17% of mobile pages with an image LCP use fetchpriority="high" .

What each attribute actually does

loading="lazy" : the download waits for layout. On a hero, that wait is pure delay.

loading="eager" : the default. Writing it changes nothing.

fetchpriority="high" : the request starts at High instead of Low. Google Flights went from 2.6 s to 1.9 s LCP with it (web.dev).

lazy + high : still waits for layout. The delay stays.

When you need a preload

Only when the preload scanner can't see the image:

a CSS background-image hero

an image a script inserts

a JS-built slider

Put fetchpriority="high" on the preload too.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.