Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Implementation of Google's FastButton javascript and jQuery and XUI.js integration

branch: master
README.md

Google FastButton

An implementation of Google's FastButton javascript, to avoid the 300ms touch delay on Android and iOS devices. Code forked from: http://stackoverflow.com/questions/6300136/trying-to-implement-googles-fast-button

  • 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
  • xui.google.fastbutton.js Provides a nice event handler using XUI
  • jquery.google.fastbutton.js Provides a nice event handler using jQuery
  • Added a method destroy() to cleanup event handlers etc

Usage

new FastButton(document.getElementById('your-button'), function() {
  alert('click');
});

jQuery Usage

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

XUI Usage

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