Photo page preloads the 1600px derivative regardless of screen size #2

closed cmc opened this on 2026-09-26 00:28 UTC

Discussion

cmc 2026-09-26 00:28 UTC

internal/web/templates/photo.html preloads imgURL . 1600 for prev/next, but the next page picks from srcset with sizes"100vw"=. Phones preload a file they never use.

Fix: <link rel"preload" as="image" imagesrcset="{{srcset .}}" imagesizes="100vw">=.

closed by cmc in commit 2893c158e9: Fix v1 follow-ups (!3)

2026-09-26 19:08 UTC