In terms of website optimization theory, you can refer to Yang Zhengmin'sArticleHow to improve the efficiency of web pages (Part 1)-14 guidelines for improving the efficiency of web pages, and how to improve the efficiency of web pages (Part 2)-use yslow to know why your web slow, this article introduces a practical class library to help you optimize your website. Combres-webform & MVC client-side resource combine library is a client resource Js for ASP. NET websites. It compresses, merges, and stores CSS files. It is open-source based on Apache 2.0 protocol and the latest version is 2.0. This library supports both webform and MVC. The main features are as follows:
- Resource file organization, including the JavaScript and CSS file organization, each can use the same configuration or use different configurations.
- You can compress, compress, and send it to the browser. All these resources only use one HTTP request.
- There is an extensible minification architecture. developers can choose to disable resource compression settings or select one of the built-in adapters. The class library contains three adapters. net Yui compressor library, Microsoft Ajax minifier library, and Google closure Compiler service. The configuration is carried out through XML files, which is very convenient.
- The etag and expires/cache-Control headers are generated for each request. server-side caching is supported.
- It is integrated with ASP. NET routing engine, so it supports ASP. net mvc and ASP. NET webform very well.
- Debugging mode is supported, so that debugging is convenient without caching or compression.
For more information about the combres library, see the article on codeproject:
Version 1.0 combres-webform & MVC client-side resource combine Library
Version 2.0 combres 2.0-a library for ASP. NET Website Optimization