Skip to content

Commit 57a3894

Browse files
fix: community page avatars loading optimised (#1389)
1 parent ce17bb2 commit 57a3894

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pages/community/index.page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ export default function communityPages(props: any) {
116116
width={35}
117117
height={35}
118118
title={avatar.login}
119+
priority={index < 10}
120+
loading={index < 10 ? 'eager' : 'lazy'}
121+
quality={75}
119122
className='sm:w-[40px] md:w-[45px] lg:w-[50px] sm:h-[40px] md:h-[45px] lg:h-[50px] rounded-full border-black'
120123
/>
121124
))}

0 commit comments

Comments
 (0)