Performance: Display headings
LOW IMPACT
This affects the page's rendering speed and visual stability by controlling how headings are styled and sized.
<h1 class="display-1">Heading</h1>
<h1 style="font-size: 4rem; font-weight: 300;">Heading</h1>| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Inline styles on headings | Minimal | Triggers style recalculation per element | Low but repeated | [X] Bad |
| Bootstrap display heading classes | Minimal | Single style calculation reused | Low and efficient | [OK] Good |