Book Image

Mobile Web Performance Optimization

By : S. S. Niranga
Book Image

Mobile Web Performance Optimization

By: S. S. Niranga

Overview of this book

With users increasingly accessing the web on mobile devices, it’s crucial to make sure your website is built to seamlessly fit this radical change in user behavior. Mobile Web Performance Optimization is designed to help you do exactly that – it’s been created to help you build fast, and mobile-user-friendly websites and applications. Featuring guidance through a range of techniques and tools essential to modern mobile development, this accessible guide will make sure you’re delivering a seamless and intuitive experience for your website’s users. Begin by exploring the fundamental components of mobile web design and website optimization, before learning how to put the concepts into practice. Featuring cross-platform solutions, insights on developing lightweight yet robust UI, and insights on how to successfully manage data, this application development book takes you through every stage in the development process – so you can be confident that you’re asking the right questions and using the best tools in the most effective way. By the end, you’ll understand implicitly what it means to ‘build for performance’- you’ll be a more confident developer, capable of building projects that adapt to a changing world.
Table of Contents (14 chapters)
Mobile Web Performance Optimization
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Offloading to Wi-Fi


If you are connecting to the network using 3G, 4G or HSPA regardless of the carrier, they use radio state machine to manage the radio resources. On the other hand, Wi-Fi connections are much more efficient than 3G and 4G. For Wi-Fi, there is no need for the state machine. As a developer, you can use this to your advantage.

Although there is less latency for connection setup, many applications fail to obtain this advantage. Offloading to Wi-Fi offers has several benefits, which are as follows:

  • Lower data cost

  • Extended battery life

  • Faster connection

  • Improved network traffic

  • Improved customer experience

However, if you use Wi-Fi extensively, it will drain your battery faster than compared to a 3G or 4G data connection. However, if you use it occasionally, the impact will be minimal.

You can use a Wi-Fi connection for the following situations:

  • If your application requires real-time interaction with the server, Wi-Fi will be the best option.

  • If you have a heavy data usage application...