Sometimes, we want to eliminate 300ms delay on click events in mobile Safari.
In this article, we’ll look at how to eliminate 300ms delay on click events in mobile Safari.
How to eliminate 300ms delay on click events in mobile Safari?
To eliminate 300ms delay on click events in mobile Safari, we add a meta element to set the viewport.
For instance, we write
<meta name="viewport" content="width=device-width, user-scalable=no" />
to add a meta element with name
attribute set to viewport
to eliminate the 300ms delay on click events in Mobile Safari.
Conclusion
To eliminate 300ms delay on click events in mobile Safari, we add a meta element to set the viewport.