Click to See Complete Forum and Search --> : Question?


nichalp
06-28-2004, 04:02 PM
Suppose we knock off all spaces, tabs and carriage returns so that the entire code is in one line, will it save bandwidth?

Logically, I feel that spaces, carriage returns etc. consume space if u use notepad or a WYSIWUG editor. So does it consume valuable bytes? :)

PeOfEo
06-28-2004, 04:28 PM
It does save bandwidth, but not enough to justify jumbleing your code if you hand code it. If you want to save bandwidtht he best way is to use css for layout and then the user only has to download the css file one time for it to be applied to every page.

IncaWarrior
06-28-2004, 05:03 PM
I do that sometimes in java when someone brags about how their program is 10 lines shorter than mine :D

Don't do it though, the bandwidth is worth it