Performance: Development server and HMR
MEDIUM IMPACT
This affects the speed of code updates during development and how quickly changes appear in the browser without full reloads.
Use a development server with Hot Module Replacement (HMR) enabled to update only changed components.
Run a development server without HMR, requiring full page reload on every code change.
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Full page reload on change | All DOM nodes recreated | Multiple reflows | High paint cost | [X] Bad |
| HMR updates changed modules only | Minimal DOM updates | Single reflow | Low paint cost | [OK] Good |