There are other SO questions on speeding up jQuery Mobile for Android, but does anyone know how to accelerate page transitions on iPhones, specifically dialog transitions?
We're on JQM 1.0. JQM 1.1 is supposed to speed up page transitions (though we haven't seen any demos yet), but we're wondering if anyone has done anything for JQM 1.0.
Right now, there is a two second delay, which is too much to show a dialog. We resort to one of two options. Using no animation for the page transition, which provides instant feedback, or rolling our own by binding to "touchstart" and animating the dialog, which is really just a big DIV inside the current page.
Neither is ideal.
Suggestions?
You should probably start by updating to 1.1 with a copy of the app. JQM 1.1 uses HTML5 transitions much more widely. In our webapps, this has substantially improved the performance of transitions.
If you want to simulate this in 1.0, create the transitions using webkit's CSS transform and animate properties with two classes ".active" and ".hidden", and then bind the addClass() function to a touchStart event in JQM.
The "click" delay is part of the android webkit I think, not much you can do about it. You could bind the touchstart
events to the buttons and then call the .changePage of JQM.
No need to roll your own animations, JQM will manage that!
click
event should only be like half a second (it's to detect if the user is clicking or swiping) - Jasper 2012-04-04 23:53