Skip to content

Commit

Permalink
feat: 상품 이미지에 lazy 속성 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
xodms0309 committed Sep 21, 2023
1 parent 266c0da commit 74feca1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const ProductItem = ({ product }: ProductItemProps) => {
width={90}
height={90}
alt={`${name}사진`}
loading="lazy"
onLoad={() => setIsImageLoading(false)}
/>
{isImageLoading && <Skeleton width={90} height={90} />}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const HomePage = () => {
<>
<section>
<Link href={'https://www.instagram.com/p/CxNKXhfyZdw/?igshid=MzRlODBiNWFlZA=='} isExternal>
<Banner src={`${IMAGE_URL}banner.png`} width={600} height={360} loading="lazy" alt="이벤트 배너" />
<Banner src={`${IMAGE_URL}banner.png`} width={600} height={360} alt="이벤트 배너" />
</Link>
</section>
<Spacing size={40} />
Expand Down

0 comments on commit 74feca1

Please sign in to comment.