Concrete5 and Lazy Loading Images

Permalink
Why isn't a lazy-loading option built-in to Concrete5 and/or the themes?

Without this functionality, what do you use to lazy load images?

Native support is available, but only in Chrome releases above 75.

I'm considering using lozad.js (https://github.com/ApoorvSaxena/lozad.js... ) and editing the theme files.

Thanks in advance

facechomp
 
JohntheFish replied on at Permalink Reply
JohntheFish
See
https://github.com/concrete5/concrete5/pull/7743...
https://github.com/concrete5/concrete5/pull/7844...

These followed up on some discussion on Slack (which has likely aged-out by now)
mnakalay replied on at Permalink Reply
mnakalay
Hello,

Although Lozad is a cool script, it doesn't deal properly with picture tags for some reason. You should try LazyLoad insteadhttps://github.com/verlok/lazyload...

It's a little bigger, about 6ko instead of 2 but it will deal with the picture tag.