Automatically minify and combine JavaScript and CSS files in any web site
page 1 of 8
Published: 21 Dec 2010
Unedited - Community Contributed
Abstract
This article describes a complete package that speeds up loading of JavaScript, CSS, and images in an ASP.NET web site. It accomplishes this by minifying JavaScript and CSS files on the fly (and caching the minified content), combining JavaScript and CSS files, making it easy to load files from cookieless domains, and much more. This article has full step by step installation instructions for both IIS 7 and IIS 6 (each version requires different additions to web.config). It will also detail how to use all the features, complete with short examples.
by Matt Perdeck
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 53303/ 131

Introduction

Optimizing the way your site loads JavaScript, CSS and images files can greatly improve web site performance. The package presented here takes care of this optimization for you. It minifies CSS and JavaScript files and intelligently combines them. It also improves images loading, including through the use of cookieless domains. There are many more features, all listed in the Features section of this article.

Using this package with your site is very easy. There is no need to change the code of your web site. You only need to add a dll, update your web.config, add a small file, and if you use IIS 6 update the configuration of IIS (no such update needed for IIS 7). Step by step installation instructions are in the Installation section in this article.

Contents

·         Requirements

·         How it works

·         Features

·         Server compression

·         Installation

·         Configuration

·         Conclusion

·         History

Requirements

·         ASP.NET 3.5 or higher (previous versions may work too but have not been tested)

·         IIS 6 or higher for your live site


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-10-06 9:24:00 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search