-
Notifications
You must be signed in to change notification settings - Fork 2
[Refactor/#557]campagin image #558
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
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughLCP 개선을 위해 캠프인 그리드의 첫 3개 항목에 이미지 우선순위 로딩을 적용하고, 이미지 포맷을 AVIF/WebP로 최적화하며, 필수 표시 스타일을 업데이트했습니다. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code graph analysis (1)apps/web/components/campaign/campaign-grid.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🛠️ 빌드 결과빌드 성공 🎉 |
ljh0608
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋네요 서비스 들여다보면서 주도적으로 개선하는 모습이 보기 좋습니다!
좋은 접근이라고 생각하고 below the fold, Above the fold Image 에 대한 개념도 살펴보시면 좋을 것 같아요~
Summary
Tasks
첫 화면에서 가장 크게 표시되는 요소가 캠페인 썸네일 이미지입니다.
하지만, Next.js Image 컴포넌트의 기본 동작이 loading =’lazy’ 이기 때문에, LCP 대상 이미지가 지연 로딩 되면서 첫 화면 로딩이 늦어지는 문제가 있습니다.
priority는 Next.js Image 컴포넌트의 속성으로, 페이지가 로드될 때 해당 이미지를 “우선순위가 높은 이미지”로 간주해 즉시 로드하도록 지시하는데,모든 이미지에
priority를 주게 되면 네트워크가 분산되어 전체 성능이 떨어질 수 있기 때문에 상단 이미지 3개에 조건부로priority을 주도록 하였어요formats 추가
정적 이미지의 경우 브러우저가 해당 포멧을 지원할 경우 webp 또는 avif 포멧으로 자동 변환되도록 설정을 추가했습니다.
결과 : LCP 10.5 s → 2.3 s 로 개선
Summary by CodeRabbit
릴리스 노트
새로운 기능
스타일
✏️ Tip: You can customize this high-level summary in your review settings.