Performance: Creating a new Angular project
MEDIUM IMPACT
This affects the initial page load speed and bundle size of the Angular app.
ng new my-app --standalone --skip-install=true
ng new my-app --routing --style=scss --strict=false --skip-install=false
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Default Angular new project with routing and SCSS | Moderate DOM nodes | Multiple reflows during initial render | High paint cost due to styles and components | [X] Bad |
| Minimal Angular new project without routing or extra styles | Minimal DOM nodes | Single reflow on initial render | Lower paint cost with fewer styles | [OK] Good |