Performance: RouterLink for navigation
MEDIUM IMPACT
This affects page load speed and interaction responsiveness by controlling how navigation updates the URL and renders new views without full page reloads.
<a routerLink="/dashboard">Dashboard</a><a href="/dashboard">Dashboard</a>| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Using <a href> for navigation | Full DOM reload | Multiple reflows | High paint cost | [X] Bad |
| Using <a routerLink> for navigation | Partial DOM update | Single reflow | Low paint cost | [OK] Good |