From 74feca1c4f34fc6576b51c867421da7a88cc0db9 Mon Sep 17 00:00:00 2001 From: TaeeunKim Date: Thu, 21 Sep 2023 19:24:03 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=83=81=ED=92=88=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=EC=97=90=20lazy=20=EC=86=8D=EC=84=B1=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/Product/ProductItem/ProductItem.tsx | 1 + frontend/src/pages/HomePage.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Product/ProductItem/ProductItem.tsx b/frontend/src/components/Product/ProductItem/ProductItem.tsx index c7e9ba92a..ecdf8b030 100644 --- a/frontend/src/components/Product/ProductItem/ProductItem.tsx +++ b/frontend/src/components/Product/ProductItem/ProductItem.tsx @@ -24,6 +24,7 @@ const ProductItem = ({ product }: ProductItemProps) => { width={90} height={90} alt={`${name}사진`} + loading="lazy" onLoad={() => setIsImageLoading(false)} /> {isImageLoading && } diff --git a/frontend/src/pages/HomePage.tsx b/frontend/src/pages/HomePage.tsx index a9899cb3b..4b236673e 100644 --- a/frontend/src/pages/HomePage.tsx +++ b/frontend/src/pages/HomePage.tsx @@ -21,7 +21,7 @@ const HomePage = () => { <>
- +