Performance: Sizing utilities (width, height)
MEDIUM IMPACT
Sizing utilities affect layout calculation and paint times by changing element dimensions, impacting page rendering speed and visual stability.
<div class="w-50 h-25"></div>
<div class="w-100 h-100" style="width: 500px; height: 300px;"></div>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Using inline styles with sizing utilities | Low | Multiple reflows due to style conflicts | High paint cost from layout thrashing | [X] Bad |
| Using only Bootstrap sizing utility classes | Low | Single reflow | Lower paint cost with stable layout | [OK] Good |