Skip to content

[Image Preview for HTML Images] Lazy loading behaviour seems… not ideal #1404

Open

Description

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.

Activity

  1. added
    Image Preview
    on Sep 23, 2026
  2. ogerchikov commented on Oct 6, 2026

    @ogerchikov
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Image Preview

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions