Skip to content

Commit

Permalink
lazy load pack image tile img
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbura committed Jan 15, 2025
1 parent 6ba0da9 commit f4bf351
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/components/image-pack-view/ImageTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export function ImageTile({
className={css.ImagePackImage}
src={mxcUrlToHttp(mx, image.url, useAuthentication) ?? ''}
alt={image.shortcode}
loading="lazy"
/>
}
title={
Expand Down Expand Up @@ -163,6 +164,7 @@ export function ImageTileEdit({
className={css.ImagePackImage}
src={mxcUrlToHttp(mx, image.url, useAuthentication) ?? ''}
alt={image.shortcode}
loading="lazy"
/>
}
>
Expand Down

0 comments on commit f4bf351

Please sign in to comment.