Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Optimizing by removing white space

Status
Not open for further replies.

SM777

Technical User
Mar 7, 2001
208
0
0
GB
Is it a good idea to remove all white space and chr(10)'s from raw HTML?

I have no need for the HTML to be readable easily so I'm thinking of making:

<HTML>
<BODY>
<TABLE WIDTH=100%>
<TR>
<TD>Hello</TD>
</TR>
<TABLE>
</BODY>
</HTML>

look like:

<HTML><BODY><TABLE WIDTH=100%><TR><TD>Hello</TD></TR><TABLE></BODY></HTML>

i.e. all in one line without carriage returns. I'll be doing it for some 100k tables so that should save quite a few bytes I guess. Just wondered if some browsers would have buffer errors or something?
 
I know of no reason why it won't work. Regards

Big Dave

davidbyng@hotmail.com


** If I am wrong I am sorry, but i'm only trying to help!! **

 
I don't think those few bits should compromise the readability of you code… But it’s no problem.
 
Thats good enough for me.

Should save a few bytes and make it harder for anyone to read the pages and extract data I think.
 
Doesn't make it harder, only more enoying! :)

if I want your code, I'll simply grab it! LOL My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top