perf(web): 홈 번들 축소(gsap 제외)·fetch 워터폴 제거·죽은 코드 정리#946
Merged
Conversation
…code cleanup - Fold fetchHeroSlides into the existing Promise.all in the home page loader instead of awaiting it afterward, removing a full round-trip from server TTFB for the above-the-fold hero. - Convert HomeShell to a Server Component: extract GreetingRow (time-based greeting) and the usePersonalizationAvailable check into small client leaves, so DiscoveryBrowse and its rails render server-side and only hydrate the pieces that are actually interactive. - Add experimental.optimizePackageImports for the design-system barrel, and dynamically import SmartNav in ConditionalNav so gsap no longer ships to routes (including home) where SmartNav never renders. - Gate ReactQueryDevtools behind a dev-only dynamic import and drop a stray AuthProvider console.log. - Remove confirmed-orphaned gsap/three/ogl code with no remaining importers: main-renewal's legacy redesign components (HeroCard, MasonryGrid/Item, MainHero, HeroCover, EditorialMagazine, its barrel), the Bookshelf/ShelfRow/IssueSpine chain, CircularGallery, and the useItemCardGSAP/useImageModalAnimation hooks (plus its now-orphaned test). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…/LCP regression Bisected via before/after Lighthouse (throttled, interleaved, median of 4 runs) after the user asked how much the home render-speed work actually improved things. Converting HomeShell/DiscoveryBrowse to a Server Component looked correct in principle (less client JS) but measured worse in practice: +150ms FCP, +700-900ms LCP versus the original client-rendered version, most likely because serializing the many server-rendered rail/card elements through the RSC flight payload costs more than what's saved by not shipping that code as client JS — passing `home` as a plain prop to a client component that maps over it itself is cheaper here. Reverting HomeShell.tsx/GreetingRow.tsx/ PersonalizationSlot.tsx back to the original single-file client component; keeping the hero fetch parallelization, SmartNav dynamic import, and dead-code removal from the same effort, which measured cleanly. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3 tasks
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.
Summary
홈 렌더 관련 번들·데이터 정리 (ISR #944 의 컴패니언). FCP/LCP 는 로컬 측정상 노이즈 수준이었으나, ISR 로 셸이 즉시 뜨는 지금은 클라이언트 번들 축소(-72KB, 대부분 gsap) 가 하이드레이션/TTI 에 더 유의미.
Changes
fetchHeroSlides를 기존Promise.all에 합류(6개 백엔드 호출 병렬화). ISR revalidation 렌더도 그만큼 단축.ConditionalNav의SmartNav(gsap 정적 import)를next/dynamic으로 전환 → shell/home 라우트에서 gsap 미로드(측정: 홈 gsap 청크 1개 68KB → 0).next.config.js:optimizePackageImports(design-system barrel, motion).ReactQueryDevtoolsdev-only dynamic import(프로덕션 번들 제외) +AuthProvider잔여console.log제거.main-renewal/*(SmartNav 제외),BookshelfView/ShelfRow/IssueSpine,CircularGallery,useItemCardGSAP/useImageModalAnimation(+테스트).Test Plan
next build성공,/[locale]● SSG(ISR, perf(web): [locale] 트리 ISR 화 — 홈 매 요청 dynamic 제거 (#942) #944) 유지