Performance: Email and phone links
LOW IMPACT
This affects page load speed minimally but impacts user interaction responsiveness and accessibility.
<a href="mailto:example@example.com">Email us</a> <a href="tel:+1234567890">Call us</a>
<span onclick="window.location.href='mailto:example@example.com'">Email us</span> <span onclick="window.location.href='tel:+1234567890'">Call us</span>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Using <span> with onclick for mailto/tel | Adds event listeners | 0 reflows | Minimal paint | [X] Bad |
| Using <a href="mailto:"> and <a href="tel:"> | No extra DOM ops | 0 reflows | Minimal paint | [OK] Good |