Performance: Background color
LOW IMPACT
Background color affects the paint phase of page rendering, influencing how quickly the browser can display visible content.
body { background-color: #ffffff; }body { background: linear-gradient(to right, #fff, #eee); }| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Solid background-color | None | None | Low paint cost | [OK] Good |
| Background with gradient | None | None | Higher paint cost due to gradient rendering | [X] Bad |