Performance: Partial files with underscore prefix
MEDIUM IMPACT
This affects CSS build time and bundle size by controlling which Sass files are compiled directly.
@import 'buttons'; @import 'header'; // Using _buttons.scss and _header.scss as partials with underscore prefix
@import 'buttons.scss'; @import 'header.scss'; // All Sass files compiled directly without partials
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Compiling all Sass files directly | N/A | N/A | High due to large CSS | [X] Bad |
| Using underscore-prefixed partials | N/A | N/A | Lower due to smaller CSS | [OK] Good |