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, ...

Get Sams Teach Yourself jQuery Mobile in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.