300ms delay removal: using fastclick.js vs using ontouchstart
问题 I'm using regular jQuery and I have an event handler that looks like this: $('#someID').on({ click: SomeFunction }, '.SomeClass'); This will produce a 300ms delay on the click event and I'm looking to remove this delay. What's the difference between rewriting this code like that: $('#someID').on({ 'touchstart': SomeFunction }, '.SomeClass'); and using an external library like Fastclick.js? 回答1: I work for the Financial Times and head up the team that created Fastclick.js. In principle, all