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 the GZIP compression algorithm to compress your JavaScript files, this 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.