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.