O'Reilly logo

Sams Teach Yourself jQuery Mobile in 24 Hours by Phil Dutson

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

Hour 21. Learning to Minify Everything

What You’ll Learn In This Hour:

• The importance of minifying your files

• How to minify JavaScript and CSS files

• How to compress images

• Enabling server compression

When creating a website you may not put much thought into the little details like overall file size, URL requests, or the amount of JavaScript, CSS, and images used, but these details can really make or break your site. This hour we learn how to compress or minify as many of the assets of your site as possible to create a lighter and fast-loading site.

Compressing Code

You may have noticed that jQuery Mobile comes with two versions of each JavaScript and CSS file it provides. The first file is usually named something close to jquery.mobile-1.0.1.js, ...

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