Book Image

Mastering jQuery Mobile

Book Image

Mastering jQuery Mobile

Overview of this book

Table of Contents (17 chapters)
Mastering jQuery Mobile
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

jQuery Mobile optimizations


When using a framework such as jQuery Mobile, there is a lot of scope for optimization, as frameworks provide a number of things out of the box that may not be utilized but are still part of the web page. This increases the page load time and thereby affects the performance. We will take a look at some optimization techniques that will help us improve the performance of our jQuery Mobile web applications.

A multipage template

You can consider making use of the multipage template in jQuery Mobile in certain cases where there is small number of pages in the web application. Using a multipage template can improve the performance of a jQuery Mobile web application, but it also has its downsides. Before taking a look at the pros and cons of using a multipage template, let's try to understand the page structure in jQuery Mobile.

The page is the primary unit of interaction in a jQuery Mobile web application. An HTML document may start with a single page, and the Ajax navigation...