Lazy loading for images in entries? (Features)

by Auge ⌂, Friday, May 20, 2022, 16:02 (131 days ago) @ Alfie

Hello Alfie

Nice to read from you. :-)

[…] I came across an article about lazy loading

Any thoughts, pros or cons?

I don’t use it my forum …

Jes, this is more for the hypothetical case of a forum with photography as its topic.

… but in my private photography site for a while. To lazy [pun!] too search but there was a discussion back in the day on the SELFHTML Forum. If you use it without a height- and possibly a width-attribute, it is not clear how ‘large’ the page actually will be. Normally you can estimate that from the scrollbar(s). Hence, having it is fine but at least with height=foo.

The function do_bbcode_img reads the dimensions of the images and put these information into the img-tag (attributes height and width). So a flickering page because of the changing sizes of the images placeholder shouldn't be an issue.

Tschö, Auge

Trenne niemals Müll, denn er hat nur eine Silbe!

Complete thread:

 RSS Feed of thread