orga.cat personal blog

HTML-only conditional lazy loading (via preload and media)

The accepted practice is to not add lazy-loading to images above the fold, especially the LCP image, since doing so can delay their loading until the browser has determined they are definitely in the viewport. One problem though is that "above the fold" depends on screen size: an image can be above the fold on desktop…
Points
100
HN comments
20
Submissions
1
Cited by
0 commenters

Web & FrontendSoftware Engineering2026

On Hacker News

SubmittedTitle on HNPointsComments
Jan 11, 2026HTML-only conditional lazy loading (via preload and media) by netol10020

Related posts from the same era