The FastClick library enhanced the responsiveness on JavaScript’s onClick event when used under Webkit, but will it improve the responsiveness of a normal hyperlink? (e.g. <a href=''...) ?
The FastClick library enhanced the responsiveness on JavaScript’s onClick event when used under Webkit,
Share
A normal anchor element will navigate the browser when the
clickevent is fired. On mobile that click registers 300ms after thetouchstart. Using FastClick and a customwindow.locationchange, will indeed speed things up.PS: I figured you are asking if default links, without custom JS handlers attached, will be faster with FastClick; they won’t, you will have to add your own custom handler. You could easily do this by delegating from a HTML element high up, say
body. You could use jQuery with the excellent:.on( events \[, selector\] \[, data\], handler(eventObject) )