A whitespace removal HTTP module for ASP.NET 2.0(madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 5 years, 7 months ago

A plug n’ play HTTP module that works simply by adding the class to the App_Code folder. It uses regular expressions to identify and remove the unnecessary whitespace from the current .aspx web page. The overhead from this module is almost too insignificant to even measure.

2 comments |category: |Views: 324

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by DamienGDamienG(1405) 5 years, 7 months ago 0

The benefits will also probably be too small to measure with most browsers supporting gzip and IIS supporting gzip out-the-box.

[)amien

Reply

posted by canofunkcanofunk(180) 5 years, 7 months ago 0

In addition providing minimal benefit, it will, in certain cases cause problems in the output pages. I tried it a couple months back and ended up ditching it after a few minutes. If I recall correctly, it created some problems with inline javascript, which doesn't like having certain whitespace removed. As the previous poster alluded to, the real bang for your buck is in gzip compression, which can easily be added to your entire site, or selective pages:

http://www.codeproject.com/aspnet/HttpCompressionQnD.asp
http://www.blowery.org/code/HttpCompressionModule.html
http://www.microsoft.com/belux/msdn/nl/community/columns/desmet/compression.mspx

Reply

information Login or create an account to comment on this story