Skip to content

[Image Preview for HTML Images] What happens to alt text? #1408

Open

Description

@edent

At the moment, most browsers will show alt text before the image loads. See this example:

Broken image with alt text describing the image.

Here's a typical AVIF preview generated by https://www.keithcirkel.co.uk/avash/

A blurry mess.

That just about gives me a sense of the structure of the image, but not much more.

Using a massive 3KB, get's this which is better but still hardly legible.

Slightly easier to see, but still illegible.

Are either of those better than alt text?

I can see why purely decorative images would benefit from a preview image. But for most other images, I think the user experience is likely to be worse.

Could Microsoft please fund a couple of user researchers to test this idea with real users? Otherwise it's just developers talking among themselves - which might not be the most representative sample 😆

Activity

  1. added
    Image Preview
    on Sep 24, 2026
  2. QINGCHARLES commented on Sep 27, 2026

    @QINGCHARLES

    Well, it's optional, not mandatory, so you can choose for your own use case, right?

  3. edent commented on Sep 27, 2026

    @edent
    Author

    No. If I am on someone else's website then I don't get to choose if they've used a preview image.

    In the example above, I was in BlueSky. I have no say in how they write their HTML.

  4. ogerchikov commented on Oct 6, 2026

    @ogerchikov
    Member

    I agree that in some cases visible alt text may be more useful than a low-quality preview, especially for informational images where a blurry preview communicates very little. In other cases, such as photos or decorative images, a preview may give users more useful visual context while the main image loads.

    Developers choose whether to provide a preview. If they do, the preview is shown instead of visible alt text while the image loads. The alt attribute is still required and continues to provide the image’s accessible description.

    I expect user research would show that neither option is always better: visible alt text will be preferable for some images and low-resolution previews for others. The research could help us provide better guidance about when to use each approach.

  5. jakearchibald commented on Oct 6, 2026

    @jakearchibald

    fwiw Gecko is the only engine that shows alt text while an image is loading.

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