Skip to content

Commit

Permalink
feat: add fetchPriority setting to preload img
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyotato committed Apr 17, 2024
1 parent 2d6445f commit 1ff5ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/shared/ItemCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const ItemCard = ({
src={article?.thumbnailUrl || null}
alt={`${article?.thumbnailUrl} 이미지`}
fallbackSrc='https://placehold.co/600x400?text=No Image'
// loading='lazy'
fetchPriority={'high'}

Check warning on line 31 in src/components/shared/ItemCard.tsx

View workflow job for this annotation

GitHub Actions / ⬣ ESLint, ʦ TypeScript, 💅 Prettier, and 🃏 Test

Curly braces are unnecessary here
/>
</AspectRatio>
<Text c='dimmed' size='xs' tt='uppercase' fw={700} mt='md'>
Expand Down

0 comments on commit 1ff5ca1

Please sign in to comment.