Performance: Create Next App setup
MEDIUM IMPACT
This affects the initial page load speed and bundle size by determining how the app is scaffolded and dependencies are included.
npx create-next-app@latest my-app --use-npm # Creates a minimal starter with only essential dependencies
npx create-next-app@latest my-app --use-npm --example with-redux-toolkit # This installs a large example with many dependencies not needed initially
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Minimal Create Next App setup | Minimal DOM nodes | 1 reflow on initial load | Low paint cost | [OK] Good |
| Create Next App with large example template | More DOM nodes from example | Multiple reflows due to heavy scripts | Higher paint cost | [X] Bad |