Async decoding for avatars

This commit is contained in:
Lim Chee Aun 2023-06-14 20:31:02 +08:00
parent ccb656b793
commit a4db692ea8

View file

@ -42,6 +42,7 @@ function Avatar({ url, size, alt = '', squircle, ...props }) {
height={size}
alt={alt}
loading="lazy"
decoding="async"
crossOrigin={
alphaCache[url] === undefined && !isMissing
? 'anonymous'