@@Gunnar Bittersmann
Man kann auch beides kombinieren: Bilder werden vorgeladen, kurz bevor sie (wahrscheinlich, so denn der Nutzer weiter runterscrollt) in den Sichtbereich gelangen.
Und im Artikel Most of the web really sucks if you have a slow connection wird beschrieben, warum das auch nicht immer die beste Idee ist:
“Since its publication, the ‘ludicrously fast’ guide was updated with some javascript that only loads images if you scroll down far enough. That makes it look a lot better on webpagetest if you’re looking at the page size number (if webpagetest isn’t being scripted to scroll), but it’s a worse user experience for people on slow connections who want to read the page. If you’re going to read the entire page anyway, the weight increases, and you can no longer preload images by loading the site. Instead, if you’re reading, you have to stop for a few minutes at every section to wait for the images from that section to load. And that’s if you’re lucky and the javascript for loading images didn’t fail to load.”
LLAP 🖖
“When UX doesn’t consider all users, shouldn’t it be known as ‘Some User Experience’ or... SUX? #a11y” —Billy Gregory