9148c358d0
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를 Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류. - 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로 자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거, 동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거. - 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming, Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business, Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로, 나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는 title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백). 원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지. - 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서. - 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는 지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지. - Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경. - 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
5.3 KiB
5.3 KiB
id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
| id | title | category | status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | verification_status | tags | raw_sources | last_reinforced | github_commit | tech_stack | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wiki-2026-0508-브라우저-렌더링-파이프라인-critical-renderin | 브라우저 렌더링 파이프라인(Critical Rendering Path) | 10_Wiki/Topics | verified | self |
|
none | A | 0.95 | applied |
|
2026-05-10 | pending |
|
브라우저 렌더링 파이프라인(Critical Rendering Path)
매 한 줄
"매 HTML/CSS/JS 의 화면 픽셀로 도달하는 순차적 stage chain". 매 Parse → Style → Layout → Paint → Composite 의 5단계 — 매 stage 의 cost 의 understand 의 LCP/INP/CLS 의 optimize 의 critical path.
매 핵심
매 5 stages
- Parse: HTML → DOM, CSS → CSSOM (parallel, but CSS blocks render).
- Style: DOM + CSSOM → Render Tree (visible nodes only —
display:noneexcluded). - Layout (Reflow): geometry 계산 — x/y/width/height.
- Paint: pixel 채우기 — color, image, shadow, text.
- Composite: layer 합성 — GPU 의 transform/opacity 의 처리.
매 blocking resources
- CSS: render-blocking — CSSOM 의 완성 의 wait.
- JS (sync): parser-blocking — DOM 의 build 의 pause.
- JS (
async): 매 download parallel, execute when ready (parser pause). - JS (
defer): 매 download parallel, execute after DOMContentLoaded.
매 layer-promote triggers
transform: translateZ(0)/will-change: transform.position: fixed(modern Chromium).<video>,<canvas>, animatedtransform/opacity.
💻 패턴
Critical CSS inlining
<head>
<style>
/* above-the-fold CSS only — 14KB 이내 */
body { margin: 0; font-family: system-ui; }
.hero { height: 100vh; background: #000; }
</style>
<link rel="preload" href="/main.css" as="style"
onload="this.onload=null;this.rel='stylesheet'">
</head>
Composite-only animation (cheap)
/* O — composite layer 만 — 60fps 안정 */
.card { transition: transform 200ms, opacity 200ms; }
.card:hover { transform: translateY(-4px); opacity: 0.9; }
/* X — layout + paint trigger — jank */
.bad { transition: top 200ms, height 200ms; }
Reflow 의 batch (read-then-write)
// X — interleave read/write — forced reflow per write
elements.forEach(el => {
const w = el.offsetWidth; // read (force layout)
el.style.width = (w * 2) + 'px'; // write (invalidate)
});
// O — batch read, then batch write
const widths = elements.map(el => el.offsetWidth);
elements.forEach((el, i) => el.style.width = (widths[i] * 2) + 'px');
Resource priority hint
<link rel="preload" href="/font.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preconnect" href="https://api.example.com">
<img src="/hero.jpg" fetchpriority="high">
<img src="/below-fold.jpg" loading="lazy" fetchpriority="low">
Web Vitals 의 측정 (PerformanceObserver)
new PerformanceObserver((list) => {
for (const entry of list.getEntries()) {
if (entry.name === 'first-contentful-paint') console.log('FCP', entry.startTime);
}
}).observe({ type: 'paint', buffered: true });
new PerformanceObserver((list) => {
const lcp = list.getEntries().at(-1);
console.log('LCP', lcp.renderTime || lcp.loadTime);
}).observe({ type: 'largest-contentful-paint', buffered: true });
content-visibility (off-screen skip)
/* 매 viewport 밖 section 의 layout/paint 의 skip */
.section { content-visibility: auto; contain-intrinsic-size: 800px; }
requestIdleCallback 의 non-critical work
requestIdleCallback(() => {
prefetchRoutes();
reportAnalytics();
}, { timeout: 2000 });
매 결정 기준
| 상황 | Approach |
|---|---|
| LCP 느림 | Critical CSS inline + preload hero image + fetchpriority="high" |
| INP 느림 | long task 의 break (scheduler.yield()), event handler 의 simplify |
| CLS 발생 | image/iframe 의 width/height 의 명시, font-display: optional |
| Animation jank | transform/opacity 만 의 사용, will-change 의 sparingly |
| Long list | content-visibility: auto + contain-intrinsic-size |
기본값: 매 Critical CSS inline (14KB), JS defer, image lazy + dimensions, transform-only animation.
🔗 Graph
- 부모: Web Vitals
- 응용: 성능 최적화(Reflow & Repaint)
🤖 LLM 활용
언제: Web Vitals regression 의 분석, layout thrash 의 detect, optimization 의 prioritize. 언제 X: Real User Monitoring (RUM) 의 raw data 의 aggregate (specialized tooling 의 use).
❌ 안티패턴
- 모든 element 에
will-change: 매 GPU memory 의 explosion — 매 sparingly. - Sync JS 의
<head>: 매 parser block — 매defer의 사용. @importchain: 매 sequential CSS load — 매<link>의 use.- Layout-trigger animation: 매
top/left/width의 transition — 매transform의 substitute.
🧪 검증 / 중복
- Verified (web.dev/learn/performance, Chrome DevTools docs, Ilya Grigorik CRP).
- 신뢰도 A.
🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — CRP 5 stages + composite animation + Web Vitals 의 정리 |