The page doesn't load any faster; the only effect is that I see a stupid fade-in instead of seeing the page with the image more or less immediately.
The Cloudflare host serving the image is a 4 ms roundtrip away. The bandwidth is 250/100 Mbit/s.
#ab -n 100 -c 10 "https://cdn-images-1.medium.com/max/1500/1*UW2Mz4yMD65VYgFZILiL_w.png"
..
Requests per second: 113.23 [#/sec] (mean)
Time per request: 88.314 [ms] (mean)
Time per request: 8.831 [ms] (mean, across all concurrent requests)
Transfer rate: 25649.12 [Kbytes/sec] received
So to summarize my points:- The javascript-driven delayed loading + fade-in is completely unnecessary and primarily distracting for people with high bandwidth connnections.
- The browser is in a better spot to figure out how to handle the loading of these images. Just make sure the dimensions are set so that the layout isn't modified after the images have loaded.
- The fade-in effect was novel the first week, a couple of years ago, but is now just annoying.
If any of the client-side developers who no doubt downvoted this sub-thread would step up to actually talk about it, it would be quite welcome. :)