You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Image Preview for HTML Images] Lazy loading behaviour seems… not ideal #1404
Preview fetching follows the final image's lazy-loading behavior.
This doesn't seem ideal. It seems desirable that the previewsrc is already there when the image scrolls into view, as it reduces the 'pop in' of lazy loaded images.
Maybe there are cases where you want both to be lazy, but it seems common to want to split those behaviours.
Thanks, I agree that loading the preview before a lazy-loaded image could reduce visible pop-in.
I added an open question to the explainer about whether authors need separate control. It also distinguishes inline previews, whose bytes are already in the document, from external previews, which could add requests for images the user never sees.
I don’t have a proposed API for this yet, but I think the behavior is worth exploring.
Activity
ogerchikov commentedon Oct 6, 2026
Thanks, I agree that loading the preview before a lazy-loaded image could reduce visible pop-in.
I added an open question to the explainer about whether authors need separate control. It also distinguishes inline previews, whose bytes are already in the document, from external previews, which could add requests for images the user never sees.
I don’t have a proposed API for this yet, but I think the behavior is worth exploring.
Document independent preview loading as an open question (#1415)