Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (26 sloc) 1.01 KB

Google FastButton

An implementation of Google's FastButton javascript, to avoid the 300ms touch delay on Android and iOS devices. Code forked from:

  • Doesn't break in IE6-8, Chrome 17, Firefox 11, or Windows Phone 7.5
  • Touch support tested in Android 2.3 (Nexus S) and IOS 5 (iPad 2)
  • google.fastbutton.js The javascript, no dependencies
  • Provides a nice event handler using XUI
  • Provides a nice event handler using jQuery
  • Added a method destroy() to cleanup event handlers etc


new FastButton(document.getElementById('your-button'), function() {

jQuery Usage

$('#your-button').fastClick(function(e) {
  alert('fast clicked!');

XUI Usage

x$('#your-button').fastClick(function(e) {
  alert('fast clicked!');
Jump to Line
Something went wrong with that request. Please try again.