Post #2898677
2026-04-13 07:05 UTC
@normplum@fosstodon.org the main benefit would be not downloading the hundreds of images. If the user never advances past the first page, they never need to download more than the first page's images. Depending on the size of the images, that could save tons of bandwidth. A few lines of purpose-built JS could go a long way. But, pulling in a huge library for that purpose would negate the savings. So, choose carefully
Replies (2)
-
@normplum@fosstodon.org 2026-04-13 10:31
@mateus@tech.lgbt Would client-side JS allow for that though? I'd have thought if the hundreds of images are all in the HTML, they'll get loaded regardless of whether they're shown or hidden by JS...
-
@troy@opencoaster.net 2026-04-13 15:35
@mateus@tech.lgbt @normplum@fosstodon.org use loading=“lazy” (sorry if someone else already mentioned, didn’t see any!)