Skip to content

AvatarImage preload support #3727

@hollandjake

Description

@hollandjake

Feature request

Overview

Using the AvatarImage component the fetch waits until the page has fully rendered to resolve the image contents even when <meta rel="preload" src="image.jpg"/> is set. assuming this is because the useImageLoadingStatus uses a ref on the window.Image which will run after first render.

Examples in other libraries

using the html native <img> does immediately load the image (especially in SSR)

Who does this impact? Who is this for?

All users - anyone who wants an avatar image preloaded with a fallback if that image failed to load

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions