asp.netperformanceoptimizationminify

Minify Html output of ASP.NET Application


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 output with white spaces. I am interested in Minifying the entire HTML output of the page just like how google does (View source www.google.com) to improve the timing.

Is there any Utility classes available for ASP.NET which can do this stuff for me?


Solution

  • There is no need to do it at run time. Because it can be done at compile time.

    Details: http://omari-o.blogspot.com/2009/09/aspnet-white-space-cleaning-with-no.html