Performance: Form control basics
MEDIUM IMPACT
Form controls affect page load speed and interaction responsiveness because they add DOM nodes and styles that the browser must process.
<input type="text" class="form-control" aria-label="Name">
<input type="text" class="form-control" style="width: 100%; padding: 20px; font-size: 2rem;" aria-label="Name">
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Minimal Bootstrap form-control | Few nodes | 1 reflow on load | Low paint cost | [OK] Good |
| Form-control with large inline styles | Few nodes | Multiple reflows | High paint cost | [X] Bad |