O'Reilly logo

Visual Studio 2012 Cookbook by Richard Banks

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

JavaScript and CSS bundling and minification

One of the common techniques for improving website performance is to reduce the number of requests a browser needs to make in order to get the resources required for the page, and to compress any resources that are requested to reduce bandwidth.

When it comes to both JavaScript and CSS, this generally means combining all of the files of the same type into a single large file (bundling) and then removing unnecessary whitespace from them and renaming variables to use the minimum amount of space possible, while still leaving the functionality unchanged (minification).

ASP.NET 4.5 supports automatic bundling and minification and in this recipe you'll add bundling and minification to a site and see how it ...

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