Performance: Rails new project generation
MEDIUM IMPACT
This affects the initial load speed and bundle size of a Rails web application by determining which components and assets are included from the start.
rails new myapp --skip-action-mailbox --skip-action-text --skip-active-storage --skip-javascript
rails new myapp
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Full default Rails project | Moderate (default views and scripts) | Multiple reflows due to larger CSS/JS | Higher paint cost from bigger assets | [X] Bad |
| Rails project with skipped unused components | Minimal DOM from leaner views | Single reflow from optimized CSS/JS | Lower paint cost due to smaller assets | [OK] Good |