Lazy loading for images in entries? (Features)
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 awidth
-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 withheight=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!