Skip to content
Implementation of Google's FastButton javascript and jQuery and XUI.js integration
JavaScript
Find file
Latest commit 41efd76 Jan 25, 2013 Alex Black Merge pull request #4 from Palloquin/patch-1
Update jquery.google.fastbutton.js

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.