Skip to content

Commit

Permalink
fix lazy image loading
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Sep 16, 2023
1 parent 81b9644 commit 0bb776a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/src/components/about/AboutHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,13 @@ function PhotoGallery() {
>
<ImageContainer>
{teamPhotos.map((item, index) => (
<Image key={index} src={item.img} alt={item.title} loading="lazy" />
<Image
key={index}
src={item.img}
alt={item.title}
loading={index > 2 ? 'lazy' : undefined}
fetchPriority={index > 2 ? undefined : 'high'}
/>
))}
</ImageContainer>
</Box>
Expand Down

0 comments on commit 0bb776a

Please sign in to comment.