Performance: Running and serving an Angular app
HIGH IMPACT
This affects how quickly the Angular app loads and becomes interactive for users.
ng build --configuration production && npx http-server ./dist/app-name
ng serve --open
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| ng serve (dev mode) | Low (simple DOM initially) | Multiple reflows during app bootstrap | High paint cost due to large scripts | [X] Bad |
| ng build production + static server | Low (same DOM) | Single reflow after bootstrap | Lower paint cost due to smaller bundles | [OK] Good |