Skip to content

Commit 5602e08

Browse files
authored
Merge pull request #13883 from ethereum/home-lazy-img
Home page: lazy load images
2 parents 43a4630 + 7cfc7c3 commit 5602e08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ const HomePage = ({
601601
<Card key={title} href={link}>
602602
<CardBanner>
603603
{/* eslint-disable-next-line @next/next/no-img-element */}
604-
<img src={imgSrc} alt="" />
604+
<img src={imgSrc} alt="" loading="lazy" />
605605
</CardBanner>
606606
<CardContent>
607607
<CardTitle>{title}</CardTitle>
@@ -667,6 +667,7 @@ const HomePage = ({
667667
src={imageUrl}
668668
alt=""
669669
className="max-w-full object-cover object-center"
670+
loading="lazy"
670671
/>
671672
) : (
672673
<TwImage src={EventFallback} alt="" />

0 commit comments

Comments
 (0)