Performance: Auto-sizing columns
MEDIUM IMPACT
This affects page load speed and rendering performance by controlling how column widths are calculated and laid out in the browser.
<div class="row"> <div class="col">Flexible column with max-width set via CSS</div> <div class="col">Another flexible column</div> </div>
<div class="row"> <div class="col-auto">Long content that changes size</div> <div class="col-auto">Another auto column</div> </div>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Multiple col-auto columns | Moderate (depends on number of columns) | Multiple reflows per column | Medium | [X] Bad |
| Fixed or flexible columns with max-width | Low | Single reflow | Low | [OK] Good |