Performance: Width utilities
MEDIUM IMPACT
Width utilities affect layout calculation and paint times by changing element sizes, impacting page rendering speed and visual stability.
<div class="max-w-full md:max-w-96"></div><div class="w-full md:w-96"></div>| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Fixed width changes on breakpoint (w-96) | Low | Triggers reflow on resize | Medium | [!] OK |
| Using max-width utilities (max-w-full, max-w-96) | Low | Minimal reflows | Low | [OK] Good |
| Using inline styles with JS to set width repeatedly | High | Multiple reflows | High | [X] Bad |