Performance: Route groups
MEDIUM IMPACT
Route groups affect page load speed by organizing routes without adding extra URL segments, impacting routing efficiency and bundle loading.
src/routes/(admin)/dashboard.svelte
// Using route groups with parentheses to organize routes without changing URLssrc/routes/admin/dashboard.svelte
// Using folders without parentheses, adding extra URL segments| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Route groups without URL impact | Minimal - only relevant route nodes loaded | 0 reflows from routing | Low paint cost due to faster load | [OK] Good |
| Routes with extra URL segments | More nodes parsed and loaded | 1+ reflows if layout changes | Higher paint cost from delayed content | [X] Bad |