|
|
|
|
|
by stereobooster
2943 days ago
|
|
Ok I see your use case: you load page on good connection, then connection get worse and images are not loaded when you scroll to it. This component allows to retry image load (click on it). It can be even more smart, like if network is good go ahead and download everything. Need to think about it |
|
Even if I do have a connection and it all succeeds, if the image is not there when I scroll to it, the lazy loader has failed in its job. And that’s pretty much unavoidable in general content—people don’t always scroll smoothly through a page; I may jump down a page at a time, or skim through some headings looking at illustrations that haven’t loaded yet because they only figured I might be interested in them a bit under half a second ago, and latency is half a second plus probably another couple of tenths of a second of annoying fade-in transition. The possibilities are endless.
Come live in Australia for a bit and deliberately use sites from the US with scroll-based lazy-loading: I predict you will rapidly acquire a healthy dislike for the technique! :-)