简体   繁体   English

GZip完整的asp.net网站

[英]GZip complete asp.net website

i am making a SPA(Single page application) so, the size of javascript is very huge - 300 KB. 我正在制作SPA(单页应用程序),因此javascript的大小非常大-300 KB。 Webservices (.asmx files) which make jsdebug files- 350 KB and the aspx files - 123 KB, so, a whole bundle of over 700 KB which makes my website very bulky. Web服务(.asmx文件)可生成jsdebug文件-350 KB,aspx文件-123 KB,因此,超过700 KB的整个文件包使我的网站非常庞大。

Please tell me the complete procedure to minify and gzip and to use it effectively. 请告诉我缩小和gzip并有效使用它的完整过程。

The Microsoft Ajax Minifier enables you to improve the performance of your web applications by reducing the size of your Cascading Style Sheets and JavaScript files . Microsoft Ajax Minifier使您能够通过减小 Cascading Style SheetsJavaScript files的大小来提高Web应用程序的性能。

Following are some good blog links to what you want: 以下是一些指向所需内容的不错的博客链接:

How to GZip on ASP.NET 如何在ASP.NET上GZip

Enabling GZip and Deflate HTTP Compression in ASP.NET pages 在ASP.NET页面中启用GZip和Deflate HTTP压缩

Enabling dynamic compression 启用动态压缩

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM