How to use Microsoft Ajax minifier to reduce the Javascript file size

Source: Internet
Author: User

When using IIS 7.0 on Windows Server to host your website, you can configure IIS to automatically use gzip Compression AlgorithmTo Compress Your JavaScript files, which provides significant improvements in performance and File Download size. However, you can get additional performance benefits by compressing and downgrading your Javascript file at the same time. Steve sounders in his excellent books


Below are the JavaScript files reduced with Microsoft Ajax minifier (Super squat level enabled:

Note that all unnecessary blank spaces are removed. Note that the firstvalue and secondvalue parameters of the function are renamed as B and.

Microsoft Ajax minifier downloads include the following components:

  • Ajaxmin.exe-command line tool for downgrading JavaScript files
  • Ajaxmintask. dll-reduce the msbuild task of the Javascript file in the Visual Studio Project
  • Ajaxmin. dll-components used to narrow down JavaScript files in C # Or VB. NET Applications

After installing Microsoft Ajax minifier, you can use the Microsoft Ajax minifier command line tool to narrow down the Javascript file on the console command line.

You can also add Microsoft Ajax minifier as a custom msbuild task to Visual Studio. Add the msbuild task to your Visual Studio project file, allowing you to automatically scale down all JavaScript files at any time during compilation, allowing you to perform the zoom-out operation in an automated manner.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.