Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to load image when I reach it after scrolling? Reply To: How to load image when I reach it after scrolling?

#298569
Secur3
Participant

@mrdeveloper There are resources for non-WP sites too. There are about 5 listed on here:

https://www.pcrepairmansblog.com/lazy-loading-libraries-for-html-css-websites

but there are a few others available if you search. I have used Lazysizes without any problems and it’s quite lightweight.

I have never seen a CSS only approach that actually doesn’t load the image. Be careful, some CSS code may load the images but simply turn off visibility which won’t help.