Repository navigation
[DONE] 커뮤니티 쪽이 Pattern Lab 코드 218 KB 를 뒤에서 받지 않는다 - #286
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YMV2HCJNqRjKp6Y9yQc549
…mment Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YMV2HCJNqRjKp6Y9yQc549
patternflow-bot
marked this pull request as ready for review
October 26, 2026 16:33
This was referenced Oct 26, 2026
engmung
pushed a commit
to engmung/Patternflow
that referenced
this pull request
Oct 27, 2026
engmung
pushed a commit
to engmung/Patternflow
that referenced
this pull request
Oct 27, 2026
Patternflow-lab#268 Patternflow-lab#271 Patternflow-lab#275 Patternflow-lab#276 Patternflow-lab#277 Patternflow-lab#279 Patternflow-lab#280 Patternflow-lab#281 Patternflow-lab#283 Patternflow-lab#284 Patternflow-lab#285 Patternflow-lab#286 Patternflow-lab#287 Patternflow-lab#288 Patternflow-lab#289 Patternflow-lab#290 Patternflow-lab#291 Patternflow-lab#292 Patternflow-lab#293 Patternflow-lab#294 Patternflow-lab#295 Patternflow-lab#296 Patternflow-lab#297 Patternflow-lab#298 Patternflow-lab#299 Patternflow-lab#300 Patternflow-lab#301 Patternflow-lab#302 Patternflow-lab#303
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.
lsh / https://claude.ai/code/session_01YMV2HCJNqRjKp6Y9yQc549
커뮤니티 쪽을 열면 머리줄의 「Pattern Lab ↗」 이 Lab 코드 210.5 KB 를, 펌웨어 안내 띠의 「Pick an edition →」 이 editions 덩이 5.0 KB 를 쪽이 다 뜬 뒤에 받고 있었어요. 커뮤니티 밖으로 가는 링크 아홉이 미리 받지 않게 해서, 머지하면 커뮤니티 어느 쪽에서든 뜬 뒤에 오는 스크립트가 218.7 KB 에서 0 이 되고 Lab 은 링크를 누를 때 받아요.
좋아지는 것: 폰으로 커뮤니티만 둘러봐도 열지 않은 Lab 코드를 받지 않는다 — 쪽마다 219 KB 를 덜 쓴다
할 일
/community스크립트 20개 중 9개, 218.7 KB 가load뒤)<Link>아홉에prefetch={false}5566b5d,incoming/만 바뀜)306abd6) · 겹치는 [DONE] PR 없음한 일
web/src/app/community/layout.tsx: 머리줄의 Pattern Lab 링크 둘(로그인 · 로그아웃)과 바닥의 「Terms & Privacy」 에prefetch={false}.web/src/components/community/FirmwareNotice.tsx: 「Pick an edition →」 에prefetch={false}.web/src/app/community/u/[username]/page.tsx,web/src/components/community/NotificationsList.tsx: 내 프로필과 빈 알림 쪽의 「Make & publish」 셋에prefetch={false}.web/src/components/community/AddHeaderModal.tsx: 헤더 창 글 속의 Pattern Lab 링크 둘에prefetch={false}.web/src/app/community/linkPrefetch.test.ts는app/community와components/community의<Link>가운데 href 가/community밖으로 가는 것을 다 찾아prefetch={false}가 있는지 봐요. 앞으로 커뮤니티에/guide같은 링크가 들어와도 걸려요.web/src/app/homeLinkPrefetch.test.ts가 쓰던sources와linkTags를web/test/linkTags.ts로 옮겨 두 시험이 같이 써요.test/cssModules.ts와 같은 자리예요. 그 시험이 보는 링크와 잣대는 그대로예요.증거
Pi 와 같은
NEXT_PUBLIC_COMMUNITY_URL,NEXT_PUBLIC_BUILD_ENABLED로 dev(66eec85)와 이 PR 을 빌드해, 같은 스크래치 DB(가입 ada 하나)로 띄웠어요. playwright-core 1.56.1 로 쪽마다 새 브라우저 문맥을 열고load뒤 8초를 기다린 다음 Resource Timing 에서.js를 셌어요. 크기는 받은 그대로(gzip)예요. 펌웨어 안내 띠는 새 브라우저라 다 떠 있어요.dev 에서
load뒤에 온 아홉 덩이를.next/server/app/<쪽>/page_client-reference-manifest.js로 가려 보면 일곱(210.5 KB)이pattern-lab, 하나(5.0 KB)가editions, 하나(3.2 KB)가 여러 쪽이 같이 쓰는 덩이예요./community/decks는 Lab 과 같이 쓰는 덩이 하나를 쪽을 열 때 이미 받아서 여덟이에요.링크를 누르면 그대로 가요. 1440 에서 「Pattern Lab ↗」 에 마우스를 올려 1.5초 기다려도 스크립트는 11개 그대로였고, 누르니 773 ms 에
/pattern-lab(탭 「Pattern Lab / Patternflow」)이 떴어요. 「Pick an edition →」 은 583 ms 에/editions(탭 「Firmware / Patternflow」)예요.새 시험을 dev 의 링크로 돌렸을 때:
고친 뒤:
다섯 검사(
web/에서,d5d0560· 그 뒤 dev merge 는incoming/만 바꿨어요):화면은 바뀌지 않아서 사진은 없어요. 고치기 전과 뒤의
scrollWidth도 390 과 1440 그대로예요.실행법
브라우저 개발자 도구의 Network 를 JS 로 거르고
/community를 열면, 쪽이 다 뜬 뒤에 더 오는 스크립트가 없어요.가정
prefetch={false}를 붙였어요. 후보 줄의 고칠 곳에는 없고, 미리 받아도 덩이 없이 RSC 만 받아요. 그래도 시험의 잣대를 「커뮤니티 밖으로 가는 링크」 하나로 두면 뒤에 무거운 쪽 링크가 들어와도 시험이 잡아서 같이 넣었어요.AddHeaderModal)의 링크 둘도 후보 줄에 없지만, 창이 열리면 보이는 링크라 같은 잣대로 고쳤어요.CommunityFeedClient.tsx)는 이미<a>라 미리 받지 않고, 패턴 쪽의 Lab 로 가기는router.push라 그대로 뒀어요.prefetch={false}는 Next 16 에서 화면에 들어올 때도 마우스를 올릴 때도 받지 않아요(node_modules/next/dist/docs/01-app/03-api-reference/02-components/link.md:304). 그래서 Lab 은 누른 뒤에 받아요. 위 773 ms 가 이 컨테이너에서 그 값이에요./community/decks는 쪽을 열 때 Lab 과 같이 쓰는 덩이를 먼저 받아서/community(174.1 KB)보다 33.8 KB 커요. 후보 26 이 같은 쪽을 다뤄서 손대지 않았어요.Changelog
Web
경험
언제: 컨테이너에서 띄운
next start를 멈추고 같은 줄에서 다시 빌드할 때교훈:
pkill -f "next start -p 3100"은 그 글이 든 제 Bash 도 죽이니pkill -f "[n]ext-server"처럼 첫 글자를 대괄호로 싸요근거: #286 에서 멈추기와 다시 빌드를 한 명령에 이으니 빌드가 돌기 전에 셸이 exit 144 로 끝났어요
바퀴
바퀴 115 · 후보 10 「커뮤니티 쪽이 Pattern Lab 코드 218 KB 를 뒤에서 받지 않는다」
다음 바퀴
[null]로 바꾸면 CORS 없는 500 이 나요.AuthStatus가 세션을 받아올 때까지 「Sign in」 을 그려요.https://claude.ai/code/session_01YMV2HCJNqRjKp6Y9yQc549
Generated by Claude Code