[refactor] 라이브러리 변경 및 코드 정리#403
Open
chhann wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 작업 내용
swiper -> embla 라이브러리 변경
코드 일관성/가독성 개편
🔧 변경 사항
대체 라이브러리 비교 & 선택 근거
Swiper
loop사용 시 복제 슬라이드 DOM 삽입/재배치가 초기화 이후 일어날 수 있어 LCP 후보 발견·요청이 지연될 위험. (Virtual/Lazy 구성 시엔 지연 가능성↑)react-slick
Embla (Headless) ✅ 최종 선택
<img src="…">를 SSR HTML에 그대로 포함시켜 브라우저가 즉시 발견/요청; 경량 번들,loop: true지원,embla-carousel-autoplay로 자동 롤링 구성직접 구현 (CSS Scroll-Snap + 최소 JS)
📸 스크린샷 (선택 사항)
main page 리펙토링 전

main page 리펙토링 후
