diff --git a/src/features/home/ui/PostCardList.tsx b/src/features/home/ui/PostCardList.tsx index 9ce0a5e..6c059a8 100644 --- a/src/features/home/ui/PostCardList.tsx +++ b/src/features/home/ui/PostCardList.tsx @@ -52,9 +52,9 @@ const PostCardList = ({ selectedTab }: PostCardListProps) => { return ( <> {activeQuery?.isFetchingNextPage && } diff --git a/src/shared/ui/CardItem.tsx b/src/shared/ui/CardItem.tsx index 6b237f8..67c5c7f 100644 --- a/src/shared/ui/CardItem.tsx +++ b/src/shared/ui/CardItem.tsx @@ -24,6 +24,7 @@ interface CardItemProps { viewCount: number; keywords?: string[]; shortSummary: string; + priority?: boolean; } export const CardItem = forwardRef( @@ -39,6 +40,7 @@ export const CardItem = forwardRef( publishedAt, isBookmarked, shortSummary, + priority = false, }, ref, ) => { @@ -116,8 +118,7 @@ export const CardItem = forwardRef( src={thumbnailUrl} alt={`{${title} - 썸네일}`} className=" w-full h-full object-cover" - // loading="lazy" - // decoding="async" + fetchPriority={priority ? "high" : "auto"} /> ) : (