Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 온보딩 이미지 lazy-loading 제거 #447

Merged
merged 8 commits into from
Oct 10, 2024
1 change: 1 addition & 0 deletions features/on-boarding/components/molecules/steps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export function Steps({ current }: StepsProps) {
alt="온보딩 이미지"
fill
style={{ objectFit: 'contain' }}
priority
Copy link
Member

@Jungjjeong Jungjjeong Oct 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

우선순위를 최상위로 높이는 방법 보다는 lazy='eager' 속성을 적용해야 할 것 같아요.
현재 이미지가 늦게 뜨는 이유는, 화면에 보여지지 않는 영역의 이미지가 로딩이 지연되는 원인이 클 것 같습니다.

https://nextjs.org/docs/pages/api-reference/components/image

/>
</div>
</div>
Expand Down
Loading