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
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 theuseImageLoadingStatususes a ref on thewindow.Imagewhich 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