99408676661

faster click response in mobile browsers

Nice and easy library to eliminate the slow reaction on mobile websites:

https://github.com/ftlabs/fastclick

FastClick is a simple, easy-to-use library for eliminating the 300ms delay between a physical tap and the firing of a click event on mobile browsers. The aim is to make your application feel less laggy and more responsive while avoiding any interference with your current logic.

Simple javascript implementation via:

<script type='application/javascript' src='/path/to/fastclick.js'></script>
window.addEventListener('load', function() {
    FastClick.attach(document.body);
}, false);

This removes the click delay the easy way, which, according to Google, is there for:

…mobile browsers will wait approximately 300ms from the time that you tap the button to fire the click event. The reason for this is that the browser is waiting to see if you are actually performing a double tap.