views:

2363

answers:

2

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?

+7  A: 

Try this: http://madskristensen.net/post/A-whitespace-removal-HTTP-module-for-ASPNET-20.aspx

gius
Broken url, project seems no longer valid.
Django Reinhardt
Mads has moved his blog. Url updated.
gius
+5  A: 

There is no need to do it on run-time. Because it can be done on compile-time.

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

thorn
Thanks - Thats a great article. +1
Ramesh
Looks promising, thanks!
Django Reinhardt