Skip to content

Commit

Permalink
feat: 꿀조합 목록에 loading lazy 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
xodms0309 committed Sep 21, 2023
1 parent 74feca1 commit 930c43e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Recipe/RecipeItem/RecipeItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const RecipeItem = ({ recipe, isMemberPage = false }: RecipeItemProps) => {
<ImageWrapper>
{image !== null ? (
<>
<RecipeImage src={image} alt={`조리된 ${title}`} onLoad={() => setIsImageLoading(false)} />
<RecipeImage src={image} alt={`조리된 ${title}`} loading="lazy" onLoad={() => setIsImageLoading(false)} />
{isImageLoading && <Skeleton width={545} height={160} />}
</>
) : (
Expand Down

0 comments on commit 930c43e

Please sign in to comment.