2 ms·
It's a simple approach to lazy loading, so that you only download the images you actually want to view on a phone as you scroll to them. (I also pick the right
by rcarmo 10y ago
It's a simple approach to lazy loading, so that you only download the images you actually want to view on a phone as you scroll to them.
(I also pick the right kind of image depending on your display DPI, and resize them on the back-end, but that's beside the point here)
I get a _lot_ of mobile visitors, and mobile bandwidth is expensive, so I'm considerate to them - folk with JavaScript disabled know how to re-enable it to view the images, and are a very minute percentage of my page views.
Sorry! :)
- abrowne 10y agoFYI I also get the blurry images in Firefox's reader mode. (I had to go back to the original to see if that was intentional when I saw the first screenshot ;-)
- rcarmo 10y agoYeah, well, that's actually JavaScript that (go figure) strips away all the event handlers :)
- matt_kantor 10y agoThe images did not load at all for me the first time I went to the page. There were just blank spaces at odd places and it wasn't until halfway through the article that I realized there were supposed to be images. I also saw some raw markdown-looking text like "[foo][f]", though other formatting and links rendered correctly. I'm using Firefox 49 on Ubuntu 16.04. I just refreshed again and everything seems to be working now.