O'Reilly logo

Mastering PhoneGap Mobile Application Development by Kerri Shotts

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Correcting visual stutters

This particular issue is most obvious when you see visual stutters while scrolling or animations are playing. The stutters occur because the device can't perform all the necessary computations to render the screen fast enough to meet the target 60 fps. To reach this target, the device must execute your code, layout the DOM, composite various elements together, and send the result to the GPU within roughly 16 ms. If it sounds like a really short time, that's because it is. For a computer, of course, this is a reasonable amount of time. But while dealing with computing the locations and sizes of DOM elements that are relative to each other, compositing transparent and translucent elements on top of one another, and then ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required