3 ms·
When I read that tip I was thinking whether I should use it on https://www.2uo.de/russland-2013/ https://www.2uo.de/russland-2013/ It's a longish travel report
by Tomte 6y ago
When I read that tip I was thinking whether I should use it on https://www.2uo.de/russland-2013/ https://www.2uo.de/russland-2013/
It's a longish travel report, lots of photos, interspersed with comments. I think it might be nice not to have all of them loaded in the beginning. Especially since random visitors probably won't read it till the end.
- dspillett 6y agoIdeal in this case might be to load images that are within one or two screenfuls of the current position, then someone scrolling down actually ingesting the content might not be bothered by the delay as they probably won't see it. That would require JS though, and you need to deal with page resizes as well as scroll events. Also make sure you include width & height settings for the image tag or you scroll position reference will be off when considering images further down the page. Maybe load a low-res placeholder for the other images in case the user drops offline as they scroll, either an "image not loaded" marker just so they know something _should_ be there or a very compressed version of the actual photo.