mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
Use loading="lazy" in more places.
i18n invites page. Polish the bans page.
This commit is contained in:
@@ -37,6 +37,7 @@ export function ImageViewer({ attachment, embed, onClose }: Props) {
|
||||
{attachment && (
|
||||
<>
|
||||
<img
|
||||
loading="eager"
|
||||
src={client.generateFileURL(attachment)}
|
||||
width={(attachment.metadata as ImageMetadata).width}
|
||||
height={
|
||||
@@ -49,6 +50,7 @@ export function ImageViewer({ attachment, embed, onClose }: Props) {
|
||||
{embed && (
|
||||
<>
|
||||
<img
|
||||
loading="eager"
|
||||
src={client.proxyFile(embed.url)}
|
||||
width={embed.width}
|
||||
height={embed.height}
|
||||
|
||||
Reference in New Issue
Block a user