Performance: Project setup with create-svelte
MEDIUM IMPACT
This affects the initial page load speed and bundle size by determining which features and dependencies are included from the start.
npm create svelte@latest my-app
# Choose only needed features, e.g., no TypeScript or testing if not required
npm install
npm run devnpm create svelte@latest my-app # Select all optional features like TypeScript, ESLint, Prettier, Playwright, and testing npm install npm run dev
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Full feature setup with all options | Moderate (more components) | Multiple (due to complex styles) | High (larger CSS and JS) | [X] Bad |
| Minimal feature setup with only essentials | Low (fewer components) | Single or none | Low (smaller CSS and JS) | [OK] Good |