Performance: Style.css and theme metadata
MEDIUM IMPACT
This affects the initial page load speed and render blocking because style.css is loaded early and theme metadata can influence asset loading.
/* style.css with minimal CSS and correct metadata headers */ /* Theme Name: My Theme Author: Someone Description: Lightweight theme with essential styles only Version: 1.0 */ body { font-family: Arial; }
/* style.css with large unused CSS and incorrect metadata headers */ /* Theme Name: My Theme Author: Someone Description: A very large theme with many unused styles Version: 1.0 */ body { font-family: Arial; } /* 1000+ lines of unused CSS rules */
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Large style.css with unused CSS | Minimal DOM impact | Triggers 1 reflow after CSS load | High paint cost due to large styles | [X] Bad |
| Minimal style.css with essential CSS only | Minimal DOM impact | Triggers 1 reflow after CSS load | Low paint cost with small styles | [OK] Good |