Skip to content

[Image Preview for HTML Images] Support JXL progressive image loading instead #1407

Open

Description

@quimic

Jpeg XL has a very efficient progressive image loading feature that shows a reduced-quality version of the image after just a few percent of the image is loaded.
This, IMHO, is a better way to deal with slow images loading.

  • It does not require creating an additional image.
  • It does not add extra http requests.
  • It quickly shows an image that is similar to the final version.

The only advantage of a dedicated preview image I can see is if you want to display a significantly different preview image. If this is even a real need, then I think it is rare enough that it can be handled with some coding, as it is done today.

So I think development effort should be put into supporting JXL, which mostly solves the problem you are trying to fix.

Activity

  1. added
    Image Preview
    on Sep 23, 2026
  2. jakearchibald commented on Sep 26, 2026

    @jakearchibald

    Chrome Canary and Firefox Nightly currently support progressive JPEG XL, so unless MS are going to disable it, Edge will support it soon.

    Although, my personal opinion, I like it when progressive formats can produce something that's obviously a preview, but phases that could be mistaken for complete, but poor quality, are bad UX imo.

    Edge also already supports progressive AVIF, which doesn't have that UX issue.

  3. QINGCHARLES commented on Sep 27, 2026

    @QINGCHARLES

    I don't think the two ideas are mutually-exclusive.

  4. ogerchikov commented on Oct 5, 2026

    @ogerchikov
    Member

    Thanks! I see progressive JPEG XL as orthogonal to this feature. It can provide a great loading experience without an additional resource, and sites should use it when it works for them.

    At the same time, a number of sites and frameworks choose to use a separate image preview rather than rely on progressive images. This proposal is trying to make that existing pattern easier to implement. I think the two approaches can complement each other.

  5. jakearchibald commented on Oct 6, 2026

    @jakearchibald

    a number of sites and frameworks choose to use a separate image preview rather than rely on progressive images

    I think it's really important for this project to be able to answer why they do that, and prove that it's actually a good idea.

    If the goal is to blindly pave cowpaths, then "put React in the browser" should be way higher priority than image previews.

  6. ogerchikov commented on Nov 7, 2026

    @ogerchikov
    Member

    I agree that existing usage alone isn’t enough to establish the benefit. I’ve added a developer-needs document with more context, including lightweight previews supplied in API responses and shared web/native asset pipelines. I hope this helps explain the needs behind separate previews, though it doesn’t establish that they’re always preferable to progressive images.

    The revised proposal also preserves native progressive rendering: displaying a preview no longer forces the browser to wait for a complete main-image frame.

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