Browser-level image lazy loading for the web  |  Articles  |  web.dev
web.dev·6d·
Discuss: Hacker News
🖼️Lazy Loading
Preview
Report Post

Houssein Djirdeh

Houssein Djirdeh

Mathias Bynens

Mathias Bynens

Barry Pollard

Barry Pollard

You can use the loading attribute to lazy-load images without the need to write custom lazy-loading code or use a separate JavaScript library. Here’s a demo of the feature:

Lazy-loaded images load as the user scrolls through the page.

This page walks through the details of implementing lazy-loading in the browser.

According to the HTTP Archive, images are the most-requested asset type for most websites, and they usually take up more bandwidth…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help