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 폴더 제거.
6.0 KiB
6.0 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-soft-navigation | Soft Navigation | 10_Wiki/Topics | verified | self |
|
none | A | 0.9 | applied |
|
2026-05-10 | pending |
|
Soft Navigation
매 한 줄
"매 page 의 reload 없이 매 URL + DOM 의 swap". Soft navigation 매 SPA pattern, History API (
pushState) + view transitions 매 modern impl. 매 2025+ 의 Web Vitals 매 soft-nav LCP/INP 의 attribute (Soft Navigations API), 매 Chrome 138+ stable.
매 핵심
매 hard vs soft 의 line
- Hard nav: 매 full document load, 매
unload/load, fresh JS context. - Soft nav: 매 client-side router. URL 매
history.pushState, DOM 매 partial swap. 매 same JS context. - CWV impact: 매 v1 vitals 매 hard 만 measure. 매 2025 Soft Navigations API 매 soft 도 LCP/INP/CLS 의 attribute.
매 detection criteria (Chrome)
- User-initiated (click, keypress).
- URL change via History API.
- DOM change (significant) post-event.
- 매 셋 의 모두 conjunction → soft-nav event.
매 view transitions API
- same-doc:
document.startViewTransition(() => updateDOM()). 매 2024 stable. - cross-doc (MPA mode): 매 2025 Chrome 126+.
@view-transition { navigation: auto }. - 매 Web Animations API 의 wrap, 매 CSS
::view-transition-*의 customize.
매 응용
- Next.js App Router (RSC streaming + soft nav).
- Remix nested routes.
- Astro view-transitions.
- SvelteKit goto().
💻 패턴
Native History API
// router.js
class SoftRouter {
constructor() {
window.addEventListener('popstate', this.render.bind(this));
document.addEventListener('click', this.intercept.bind(this));
}
intercept(e) {
const a = e.target.closest('a[data-soft]');
if (!a) return;
e.preventDefault();
this.navigate(a.href);
}
async navigate(url) {
history.pushState({}, '', url);
await this.render();
}
async render() {
const path = location.pathname;
if (document.startViewTransition) {
document.startViewTransition(() => this.update(path));
} else {
this.update(path);
}
}
update(path) {
document.querySelector('main').innerHTML = renderRoute(path);
}
}
new SoftRouter();
Next.js 15 App Router
// app/products/[id]/page.tsx
import { Suspense } from 'react';
export default async function Product({ params }) {
const data = await fetch(`/api/p/${params.id}`).then(r => r.json());
return (
<Suspense fallback={<Skeleton />}>
<ProductView data={data} />
</Suspense>
);
}
// link triggers soft nav by default
import Link from 'next/link';
<Link href="/products/42" prefetch>View</Link>
Cross-doc view transition (Astro / vanilla)
<!-- src/layouts/Base.astro -->
<head>
<style>
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out 0.2s; }
::view-transition-new(root) { animation: fade-in 0.2s; }
</style>
</head>
Soft Navigations API (measurement)
// observer.js
new PerformanceObserver(list => {
for (const entry of list.getEntries()) {
console.log('soft nav', {
from: entry.url,
startTime: entry.startTime,
navigationId: entry.navigationId,
});
}
}).observe({ type: 'soft-navigation', buffered: true });
// Attribute LCP per soft-nav
new PerformanceObserver(list => {
for (const e of list.getEntries()) {
if (e.navigationId !== 'auto') {
console.log('soft LCP', e.startTime, e.element);
}
}
}).observe({ type: 'largest-contentful-paint', buffered: true });
Prefetch on hover/intent
document.addEventListener('mouseover', e => {
const a = e.target.closest('a[data-soft]');
if (a && !a.dataset.prefetched) {
fetch(a.href, { priority: 'low' });
a.dataset.prefetched = '1';
}
});
web-vitals attribution (soft nav)
import { onLCP, onINP, onCLS } from 'web-vitals/attribution';
onLCP(metric => sendBeacon('/v', { ...metric, navType: metric.navigationType }), {
reportSoftNavs: true,
});
onINP(m => sendBeacon('/v', m), { reportSoftNavs: true });
매 결정 기준
| 상황 | Approach |
|---|---|
| Static-mostly site | 매 MPA + cross-doc view transition |
| Heavy interactivity | 매 SPA soft nav (Next.js / Remix) |
| Mixed | 매 islands (Astro) + selective soft nav |
| Performance-critical | 매 prefetch on intent + Suspense streaming |
기본값: 매 framework 의 router (Next.js / Remix / SvelteKit) 의 use; 매 view transitions 의 progressive-enhance.
🔗 Graph
- 부모: SPA · Web-Performance
- 변형: Turbo · HTMX
- 응용: View-Transitions-API · Web-Vitals
- Adjacent: INP · LCP · Streaming SSR
🤖 LLM 활용
언제: 매 router code scaffolding, 매 RUM analytics dashboard query gen, 매 view-transition CSS draft. 언제 X: 매 perf measurement (real RUM data needed), 매 a11y validation (manual + axe).
❌ 안티패턴
- No focus management: 매 soft nav 후 focus 매 lost. 매 a11y violation.
route.focus()on<main>. - No scroll restoration: 매 back-button 매 wrong scroll.
history.scrollRestoration='manual'+ manual restore. - CLS spike: 매 layout shift 의 unmeasured. 매 view-transitions 의 use.
- Blocking JS during nav: 매 INP 매 800ms+. 매 Suspense / streaming.
- No prefetch budget: 매 hover 매 모든 link 의 fetch — 매 bandwidth waste.
🧪 검증 / 중복
- Verified (web.dev Soft Navigations 2025; Chrome Status #5085744967254016; web-vitals.js v4 docs).
- 신뢰도 A.
🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — full content (History API + view transitions + Soft Nav API patterns) |