forked from abner/for-legacy-web
Use loading="lazy" in more places.
i18n invites page. Polish the bans page.
This commit is contained in:
@@ -168,7 +168,7 @@ function FileEntry({
|
||||
return (
|
||||
<Entry className={index >= CAN_UPLOAD_AT_ONCE ? "fade" : ""}>
|
||||
<PreviewBox onClick={remove}>
|
||||
<img class="icon" src={url} alt={file.name} />
|
||||
<img class="icon" src={url} alt={file.name} loading="eager" />
|
||||
<div class="overlay">
|
||||
<XCircle size={36} />
|
||||
</div>
|
||||
|
||||
@@ -97,6 +97,7 @@ export function TypingIndicator({ typing }: Props) {
|
||||
<div className="avatars">
|
||||
{users.map((user) => (
|
||||
<img
|
||||
loading="eager"
|
||||
src={client.users.getAvatarURL(
|
||||
user._id,
|
||||
{ max_side: 256 },
|
||||
|
||||
@@ -91,6 +91,7 @@ export default function Embed({ embed }: Props) {
|
||||
<div className={styles.siteinfo}>
|
||||
{embed.icon_url && (
|
||||
<img
|
||||
loading="lazy"
|
||||
className={styles.favicon}
|
||||
src={client.proxyFile(embed.icon_url)}
|
||||
draggable={false}
|
||||
|
||||
Reference in New Issue
Block a user