Skip to content

Commit 49004de

Browse files
committed
Use loading=lazy on all PNGs below the fold
1 parent 3817afa commit 49004de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/layouts/LandingPageLayout.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ module CuratedResources = {
636636
key={Int.toString(i)}
637637
href={card.href}
638638
className="hover:bg-gray-80 bg-gray-90 px-4 md:px-8 pb-0 md:pb-8 relative rounded-xl md:min-w-[196px]">
639-
<img className="h-[53px] absolute mt-6" src=card.imgSrc />
639+
<img className="h-[53px] absolute mt-6" src=card.imgSrc loading=#lazy />
640640
<h5 className="text-gray-10 hl-4 mt-32 h-12"> {card.title} </h5>
641641
<div className="text-gray-40 mt-2 mb-8 body-sm"> {React.string(card.descr)} </div>
642642
</Next.Link>
@@ -659,7 +659,7 @@ module CuratedResources = {
659659
key={Int.toString(i)}
660660
href={card.href}
661661
className="hover:bg-gray-80 bg-gray-90 px-5 pb-8 relative rounded-xl min-w-[200px]">
662-
<img className="h-12 absolute mt-5" src=card.imgSrc />
662+
<img className="h-12 absolute mt-5" src=card.imgSrc loading=#lazy />
663663
<h5 className="text-gray-10 hl-4 mt-32 h-12"> {card.title} </h5>
664664
<div className="text-gray-40 mt-4 body-sm"> {React.string(card.descr)} </div>
665665
</a>

0 commit comments

Comments
 (0)