javascript - Stuttery performance issues with Jquery Mobile and Phonegap -


so, developing app using phonegap , jqm. works great , it's pretty easy phonegap build. however, i've started see 'stutter issues' annoying. app @ moment has 2 pages , transition effect between them 'slide'. first page has background color set , second 1 not. of issues:

  1. when navigate page 1 page 2, half of page has background color previous page. goes away after random swipes on screen.
  2. on 1 of pages, have regular form text input fields , radio button set @ end. when move input box radio button keyboard slides down replaced black area short period of time.
  3. the fixed header have @ top randomly decides disappear , reappear again.

these few of annoying ones , these happen on mobile device , works fine on computer. so, know it's performance issue.

i've read on internet , here on , different solution have been proposed writing custom css3 transitions (to take advantage of hardware acceleration) or using zepto.js.

what in opinion best 'cross device compatible' method overcome these? there way force hardware acceleration jquery mobile? css3 performance across device platforms?

ps. have been testing on jelly bean 4.2.2. not posting of code because plain form elements , input tags , happens on multiple pages totally different pretty sure isn't code related.

any appreciated.

jquery writes animations using javascript dynamically writes inline styles change quickly. issue that, isn't using hardware acceleration , if testing on retina device, animates using pixels unit of measurement. skipping half of pixels causes stutter.

i have written apps using phonegap , best way came use css3 animations/transitions. super smooth , feel native app. still use jquery add/remove classes, etc., movement should come css.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -