diff --git a/src/components/Avatar.tsx b/src/components/Avatar.tsx index 58f1507..62efbc7 100644 --- a/src/components/Avatar.tsx +++ b/src/components/Avatar.tsx @@ -31,6 +31,7 @@ function Avatar(props: Props) { src={props.user?.avatarUrl ?? app.account?.avatarUrl} width={props.size ?? 32} height={props.size ?? 32} + loading="eager" /> ); diff --git a/src/components/GuildItem.tsx b/src/components/GuildItem.tsx index e100f65..aae74c1 100644 --- a/src/components/GuildItem.tsx +++ b/src/components/GuildItem.tsx @@ -123,6 +123,7 @@ function GuildItem({ guild, active }: Props) { src={REST.makeCDNUrl(CDNRoutes.guildIcon(guild.id, guild?.icon, ImageFormat.PNG))} width={48} height={48} + loading="lazy" /> ) : ( - {props.image && } + {props.image && } {props.icon && ( ; + finalElement = ( + {attachment.filename} + ); } else if (details.isVideo && details.isEmbeddable) { finalElement =