DEV Community

Discussion on: Native Lazy Loading for <img> and <iframe> is Coming to the Web

Collapse
khophi profile image
KhoPhi

Awesome.

Only question is, is there native support too for placeholder image before the lazy loaded image comes in?

Checked the Addy link, didn't seem to notice any placeholder option natively.

I'm terribly excited about this. The less JS, the better.

Collapse
malvoz profile image
Robert Linder • Edited on

WHATWG issue for placeholders: github.com/whatwg/html/issues/3631

Collapse
emptyother profile image
emptyother

I think it would make sense to put that as a CSS pseudo-class. Could be useful with a broken image pseudo-class too.