Performance: Intercepting routes (.)
MEDIUM IMPACT
This affects page load speed and interaction responsiveness by controlling how route changes load and render content.
import Link from 'next/link'; export default function Page() { return <Link href="/dashboard/settings" replace>Go to Settings</Link>; }
export default function Page() { return <a href="/dashboard/settings">Go to Settings</a>; }
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Full page reload on route change | High (rebuilds entire DOM) | Multiple (full layout recalculation) | High (repaints entire page) | [X] Bad |
| Intercepting nested routes with client-side navigation | Low (updates partial DOM) | Single or none (partial layout update) | Low (partial repaint) | [OK] Good |