@prologic Ah, the joy of making your own browser – welcome to the club. 😃 (I chose WebKitGTK back then and that was not super compatible with websites … CEF would have been better, but also harder to use.)
Compromise: Don’t lazy-load the first ~7 images or so, i.e. the ones that are immediately in view.
tl;dr: Lazy loading is much better on slow internet lines but shittier on fast ones. 🫠
Ah, with lazy loading, browsers only start loading images when the load event occurs. And that takes time. Hm. Not a fan, I might revert this. 🤔
@lyse I noticed that loading="lazy" might not be so great after all.
This is without lazy loading:
https://movq.de/v/1ea351add4/s.png
The total page load time is around 400-500 ms. Okay.
Now this is with lazy loading:
https://movq.de/v/9708e1afff/s.png
It finished much quicker, after about 250 ms. Sounds good.
But notice this gap right here?
https://movq.de/v/96645a7a75/s.png
This wasn’t there before. With lazy loading, it now takes something like 80-100 ms until the browser even starts loading images. This is Chromium, but Firefox shows a similar gap.
The net result is that there is a very noticeable delay/flicker when you open a page, because it takes so long until the images have loaded. Yes, the layout doesn’t shift around, but that has nothing to do with lazy loading.
How odd. 🤔
@lyse Oh my god, there’s nothing that CSS can’t do, eh? 😳 Crazy stuff.
Okay, I’m using the “official” validator now:
https://github.com/w3c/feedvalidator
That repo is supposed to be a website/webservice, though. The feedvalidator directory contains the actual validator. I’m using this wrapper on top: https://movq.de/v/94b5b8978c/
@lyse Putting HTML into the feed. It should be XHTML. 🤪 (I used <img ...> instead of <img .../>.)
@lyse Nice! (But if you ask me, a day without sun would a welcome change. 🤣)
søren peter mørch