Feature request: native lazy-loading

Maybe a little early still, but why not add support for native lazy-loading to Pro?

https://web.dev/native-lazy-loading/
https://css-tricks.com/a-deep-dive-into-native-lazy-loading-for-images-and-frames/

1 Like

Browser compatibility isn’t quite there just yet to use that spec, but we have been keeping an eye on it! Kory and I were actually discussing that web.dev article last month sometime. This is something we’re interested in solving. Most likely won’t be until we get to the Theme Options reboot.

1 Like

I understand. It would be safe to use now since it’s a progressive enhancement. Those with browsers that support it will benefit from it and those who don’t use a supported browser won’t be negatively affected. Happy to know it’s something you’ve already thought about :slight_smile:

Do you think it might also be usable inside the builders? Could speed up loading image heavy pages in the content builder.

1 Like

Native Lazy loading is great, but In the order of things, since it can be achieved with plugins, I’d be more interested in the native srcset inside the Image element first. :slight_smile:

3 Likes

@JvP Because we try to make the preview as close to possible as the front end I imagine it would just work the same way, offering the same benefit inside the preview frame.

@Misho, this is another one we have on the radar for the theme option reboot update.

2 Likes

Awesome, looking forward to it!

:thumbsup:

Bump :grin:

1 Like

I think this loading attribute is already in use. srcset is something we can look at after 6.3. I see some other requests for it.

image

3 Likes

Awesome, specifically srcset improvements would be fantastic.

3 Likes