Geek Noise
Rants, rambles, news and notes by Peter Provost
08

HttpFilter For Removing Whitespace

Monday, 8 September 2003 21:06 by Peter Provost

Donny Mack posted an interesting idea. Add an HTTP Filter to strip out tabs and CRs. I wonder how much it will shrink the average page? I just might try it on a few of my sites.

One thing to keep in mind though, his algorithm is doing a naive replacement of whitespace and carriage returns. The problem is if you have Javascript that isn't semicolon delimited. Since it isn't required, many developers don't bother. So check your client-side script before using this.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   Technology
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed
Comments are closed