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

Best practices for CSS


When you are using a framework such as jQuery Mobile to build a website, you may not use all the components and widgets provided by this framework, which means that there is a lot of CSS that is never being utilized. To improve the performance of your website / web page, optimizing the CSS can prove greatly useful. Let's take a look at some of the CSS optimizations that we can implement to improve your page performance.

Customizing the jQuery Mobile download

You can customize your jQuery Mobile download by selecting the specific modules that you will need in your application. To download a custom build of jQuery Mobile, use the download builder available at http://jQuerymobile.com/download-builder.

Custom builds will reduce the library's file size. They also reduce the time taken by the library to spin up and start executing. All of this helps reduce the time taken to initialize the page. Let's take a look at a small example of a custom build, which includes the following...