Skip to content

Commit 8fa7015

Browse files
committed
feat: MissionGridCard 및 MissionListCard 컴포넌트에 이미지 로딩 최적화를 위한 'loading="lazy"' 속성 추가
1 parent f443897 commit 8fa7015

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/routes/mission/-components/MissionGridCard.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export default function MissionGridCard({
5757
"absolute inset-0 w-full h-full object-cover z-[-1]",
5858
isLocked && status === "not_tried" && "blur-sm"
5959
)}
60+
loading="lazy"
6061
/>
6162
)}
6263
<div className="flex flex-col justify-between h-full">
@@ -134,6 +135,7 @@ export default function MissionGridCard({
134135
src={holdImageUrl}
135136
alt="mission-image"
136137
className="object-contain w-full h-full"
138+
loading="lazy"
137139
/>
138140
</div>
139141
)}

src/routes/mission/-components/MissionListCard.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ export default function MissionListCard({
3737
src={imageUrl}
3838
alt=""
3939
className="w-full h-full rounded-[20px] object-cover"
40+
loading="lazy"
4041
/>
4142
)}
4243
{status !== "not_tried" && holdImageUrl && (
4344
<img
4445
src={holdImageUrl}
4546
alt=""
4647
className="w-full h-full rounded-[20px] object-contain"
48+
loading="lazy"
4749
/>
4850
)}
4951
</div>

0 commit comments

Comments
 (0)