Minify Html output of ASP.NET Application

后端 未结 6 2080
后悔当初
后悔当初 2020-11-28 23:47

What are the ways by which we can reduce the size of the HTML Response sent by an asp.net application?

I am using Controls which are not owned by me and it produces

6条回答
  •  伪装坚强ぢ
    2020-11-29 00:35

    For Microsoft .NET platform there is a library called the WebMarkupMin, which produces the minification of HTML code. For each ASP.NET framework has its own module:

    • ASP.NET Core - WebMarkupMin.Web. Implemented as an HTTP module, so it can work with any framework. Suitable for use in the ASP.NET Web Pages framework (Razor).
    • ASP.NET MVC - WebMarkupMin.Mvc
    • ASP.NET Web Forms - WebMarkupMin.WebForms

    Documentation is available at - http://webmarkupmin.codeplex.com/documentation

提交回复
热议问题