DEV Community

loading...

Discussion on: Any reason for not using loading="lazy" attribute?

Collapse
simevidas profile image
Šime Vidas

Why isn't that the default for loading images in browsers?

Some websites expect that all images on the page load without delay. If browsers started lazy-loading images by default, those sites could become buggy. If there’s one thing that browsers try to avoid, it’s breaking websites like that.

Collapse
maybach profile image
Patrick

Can you elaborate which websites you have in mind, which expects all images loaded without delay?
I can only think of artsy / brutalism websites and Websites who are using basic 360° Product Images

Collapse
simevidas profile image
Šime Vidas

I’m just assuming. Generally speaking, for any behavior in a browser, there will be some websites that depend on that behavior. Even bugs. If a browser has a buggy implementation, some websites will start depending on those bugs, and fixing the bugs in the browser will cause bugs on the websites.