Performance: Locale switching
MEDIUM IMPACT
Locale switching affects page load speed and interaction responsiveness by changing displayed language and formats dynamically.
this.localeSignal.set(newLocale); // Angular signal triggers reactive updates without reload
this.locale = newLocale; window.location.reload();
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Full page reload on locale change | All nodes recreated | Multiple reflows | High paint cost | [X] Bad |
| Reactive locale update with Angular signals | Only text nodes updated | Single reflow | Low paint cost | [OK] Good |