Topic: space adds more file size??? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=9601" title="Pages that link to Topic: space adds more file size??? (Page 1 of 1)" rel="nofollow" >Topic: space adds more file size??? <span class="small">(Page 1 of 1)</span>\

 
Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

posted posted 02-18-2003 22:34
quote:
When you write HTML text, you can never be sure how the text is displayed in another browser. Some people have large computer displays, some have small. The text will be reformatted every time the user resizes his window. Never try to format the text in your editor by adding empty lines and spaces to the text.

HTML will truncate the spaces in your text. Any number of spaces count as one. Some extra information: In HTML a new line counts as one space.



This is from http://www.w3schools.com/html/html_primary.asp

My understanding is that any spaces adds more file size. The lines between the paragraphs also add more files size.

So that I reckon I'd better avoid adding to unnecesariry space or line to save bandwidth. Is that right???? I just wanted to tell you about this.

Any comment, great.


Hiroki Kozai

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-18-2003 22:38

Yup, all whitespace will be turned into a single space.

The bandwidth implications of this, however, are hardly noticeable. Text is extremely small, so there's no reason to restrain your use of whitespace. Don't use it *unnecessarily*, but do feel free to use extra when it will make things more understandable.

For instance, if you want an extra, empty line inbetween your <p> tags to make things more readable, go for it. The difference won't be noticeable, and it makes your code easier to edit later.

If you're worried about bandwidth, you should worry about your images, since a small image is about the same size as a large HTML file.

Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

posted posted 02-18-2003 23:21

hi, Slime. Thanks a lot.
Have a good day!!! I wonder what your time it is.....
Here it is half past 11 am.
See ya.

Hiroki Kozai



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu