Performance: Why accessibility matters
MEDIUM IMPACT
Accessibility impacts user experience and interaction speed, indirectly affecting input responsiveness and perceived performance.
<button type="button" onclick="doSomething()">Click me</button>
<div onclick="doSomething()">Click me</div>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Non-semantic clickable div | Low | 0 | Low | [X] Bad |
| Semantic button element | Low | 0 | Low | [OK] Good |