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 폴더 제거.
4.6 KiB
4.6 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-client-side-rendering-csr | Client-Side Rendering (CSR) | 10_Wiki/Topics | verified | self |
|
none | A | 0.9 | applied |
|
2026-05-10 | pending |
|
Client-Side Rendering (CSR)
매 한 줄
"매 browser 가 매 HTML 을 그린다". CSR 은 server 가 빈 shell + JS bundle 만 보내고, browser 가 fetch + render 모두 수행 — 매 SPA 의 default mode, interactive app 에 강하나 매 first paint / SEO 매 weak.
매 핵심
매 lifecycle
- Browser → server:
GET /→ minimal HTML +<script src="bundle.js">. - Browser parses HTML → fetches JS bundle.
- JS executes → mounts framework → fetches data → renders DOM.
- User interacts.
매 trade-off
| Pros | Cons |
|---|---|
| Rich interactivity | Slow TTI (특히 mobile) |
| Server cost low | SEO 매 needs hydration tricks |
| Client routing fast | Blank screen until JS loads |
| Offline-capable (PWA) | Bundle size matters a lot |
매 CSR vs SSR vs RSC (2026)
- CSR: dashboard, internal tool, app-like UX.
- SSR: marketing, blog, e-commerce.
- RSC: hybrid — server-render with client islands.
- SSG: docs, blog (rebuild on content change).
💻 패턴
Vite + React CSR baseline
// main.tsx
import { createRoot } from 'react-dom/client';
import App from './App';
createRoot(document.getElementById('root')!).render(<App />);
<!-- index.html -->
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
Route-based code splitting
import { lazy, Suspense } from 'react';
import { Routes, Route } from 'react-router';
const Dashboard = lazy(() => import('./Dashboard'));
const Settings = lazy(() => import('./Settings'));
export default function App() {
return (
<Suspense fallback={<Spinner />}>
<Routes>
<Route path="/dashboard" element={<Dashboard />} />
<Route path="/settings" element={<Settings />} />
</Routes>
</Suspense>
);
}
Skeleton-first paint (perceived perf)
function UsersList() {
const { data, isLoading } = useQuery({ queryKey: ['users'], queryFn: fetchUsers });
if (isLoading) return <UsersSkeleton rows={10} />;
return <ul>{data!.map((u) => <li key={u.id}>{u.name}</li>)}</ul>;
}
Pre-fetch on hover (link prefetch)
<Link
to="/dashboard"
onMouseEnter={() => queryClient.prefetchQuery({ queryKey: ['dashboardData'], queryFn })}
>
Dashboard
</Link>
Service Worker for offline shell
// sw.ts
self.addEventListener('install', (e: any) => {
e.waitUntil(caches.open('shell-v1').then((c) => c.addAll(['/', '/main.js', '/main.css'])));
});
self.addEventListener('fetch', (e: any) => {
e.respondWith(caches.match(e.request).then((r) => r ?? fetch(e.request)));
});
Bundle budget enforcement
// vite.config.ts
export default {
build: {
rollupOptions: {
output: {
manualChunks: { vendor: ['react', 'react-dom'] },
},
},
chunkSizeWarningLimit: 200, // KB
},
};
SEO via prerender (when CSR + needed)
# Use prerender for marketing routes only
npx prerender-spa-plugin --routes /,/about,/pricing
매 결정 기준
| 상황 | Render mode |
|---|---|
| Auth-walled dashboard | CSR |
| Marketing site | SSG or SSR |
| Mixed app (e-commerce) | RSC / SSR + islands |
| Rich realtime (Figma-like) | CSR + WebSocket |
기본값: 매 user-app (login wall 뒤) → CSR. 매 public content → SSR/SSG/RSC.
🔗 Graph
- 부모: Rendering-Strategies · 프론트엔드 및 UIUX 표준
- 변형: React Server Components — 경계 의식
- Adjacent: Core Web Vitals Optimization (INP, LCP, CLS) · Code Splitting · Hydration
🤖 LLM 활용
언제: app-like UX, auth-protected, heavy client interactivity. 언제 X: 매 SEO-critical public page, low-end device 가 주 audience.
❌ 안티패턴
- Mega-bundle: 매 single chunk 5MB → split routes / vendor.
- No skeleton / loading state: 매 blank screen 매 perceived as broken.
- CSR for blog/docs: 매 SEO/perf 매 모두 lose — SSG choice.
🧪 검증 / 중복
- Verified (web.dev / React docs / Vite docs).
- 신뢰도 A.
🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — CSR fundamentals + tradeoffs + patterns |