A Plugin to Speed Up Click Events in iOS and Others
demo:
justinmccandless.com/demos/jquery.mobile.fastButtons/index.html
github: github.com/justinmc/jquery.mobile.fastButtons
I wanted to share this easy plugin I wrote for a project with a big emphasis on performance. I was having huge problems with click events happening very slowly, especially on iOS. It made my app feel incredibly sluggish next to a native app, but the problem wasn't that HTML5 was slow, it was just that the webview was waiting around for click events to fire.
jQuery Mobile actually includes a really nice event, vclick, but it doesn't use it by default on any of its buttons. So, this plugin simply removes these default click events and replaces them with vclick.
The result is a big improvement in speed. Check out the demo in whatever browser or device you want and you can see the kind of speed gains you'll get.
Hope this helps someone! It's hard enough competing with native apps to have to worry about click events slowing you down.