O'Reilly logo

Mobile Web Performance Optimization by S. Niranga

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

Screen rotations

The introduction of the accelerometer in mobile devices has created new opportunities for developers to create an application that is creative, innovative, and user-friendly. The accelerometer allows the device to detect the physical orientation of the device so we can use that information in our application. For example, if you open the calculator application on your device, in vertical view it will behave like a regular calculator. If you change the orientation to horizontal, the calculator will turn into a scientific calculator. However, if we don't manage the screen rotation efficiently, it may cause issues.

With some mobile applications, screen orientation initiates network connection just for that event. This wastes the device's ...

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