Skip to content

Commit

Permalink
fix: community page avatars loading optimised
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaMajmudar committed Feb 1, 2025
1 parent 652f396 commit bbf3fa7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/community/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ export default function communityPages(props: any) {
width={35}
height={35}
title={avatar.login}
priority={index < 10}
loading={index < 10 ? 'eager' : 'lazy'}
quality={75}
className='sm:w-[40px] md:w-[45px] lg:w-[50px] sm:h-[40px] md:h-[45px] lg:h-[50px] rounded-full border-black'
/>
))}
Expand Down

0 comments on commit bbf3fa7

Please sign in to comment.