Performance: Column stacking on mobile
MEDIUM IMPACT
This affects the page's layout rendering speed and visual stability on mobile devices.
<div class="row"> <div class="col-12 col-md-6">Column 1</div> <div class="col-12 col-md-6">Column 2</div> </div>
<div class="row"> <div class="col-6">Column 1</div> <div class="col-6">Column 2</div> </div>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Fixed columns without responsive classes | Minimal DOM nodes | Multiple reflows on resize due to forced horizontal scroll | Higher paint cost from layout shifts | [X] Bad |
| Responsive columns with col-12 col-md-6 classes | Minimal DOM nodes | Single reflow on resize with smooth stacking | Lower paint cost with stable layout | [OK] Good |