Performance: Lead paragraphs
LOW IMPACT
Lead paragraphs affect the initial page load and rendering speed by adding styled text elements that can impact layout and paint times.
<p class="lead">Welcome to our site!</p>
<p class="lead" style="font-size: 2rem; font-weight: 700;">Welcome to our site!</p>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Bootstrap lead class only | Minimal (1 paragraph node) | 0-1 reflow | Low paint cost | [OK] Good |
| Lead paragraph with inline styles | Minimal (1 paragraph node) | 1 reflow | Medium paint cost | [!] OK |
| Multiple lead paragraphs with heavy inline styles | Multiple nodes | Multiple reflows | High paint cost | [X] Bad |