HighDots Forums  

Don't bother saving white-space

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Don't bother saving white-space in the HTML forum.



Reply
 
Thread Tools Display Modes
  #31  
Old   
Spartanicus
 
Posts: n/a

Default Re: Don't bother saving white-space - 08-20-2004 , 12:28 PM






Stephen Poley <sbpoleySpicedHamTrap (AT) xs4all (DOT) nl> wrote:

Quote:
56K is the theoretical maximum, in reality this is never achieved, sub
50K is pretty normal.

OK. In a previous configuration I always got 56 (to the nearest K), so I
assumed that was normal.
Most unlikely, likely: your DUN reported DTE instead of DCE speed.

DTE is the comport speed and it's a common misconfiguration. Ever seen
people reporting that their modems connect @ 115KBps? Same cause

--
Spartanicus


Reply With Quote
  #32  
Old   
Andreas Prilop
 
Posts: n/a

Default Re: Don't bother saving white-space - 08-20-2004 , 12:32 PM






On Fri, 20 Aug 2004, Jukka K. Korpela wrote:

Quote:
Come again? I always use tabs to make my source more readable and
I cannot see what should be wrong with it.

As regards to formatting HTML source, tabs may take you to some tab
stops, or they may not, depending on the program you're using.
If not, then the program treats tab as a single space and nobody
is harmed.

Quote:
I don't see why you would use tabs,
Because a tab says more than 1000 spaces - so to speak ;-)
I save lots of space characters for a single tab.

Quote:
when spaces work so much more reliably
In what respect is a space more reliable than a tab? And what
about newlines? Don't you have any newlines in your souce text?
Space, tab, newline are equally valid white space.

--
Top-posting.
What's the most irritating thing on Usenet?



Reply With Quote
  #33  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Don't bother saving white-space - 08-20-2004 , 12:57 PM



Andreas Prilop <nhtcapri (AT) rrzn-user (DOT) uni-hannover.de> wrote:

Quote:
In what respect is a space more reliable than a tab?
A space forwards exactly one character position. A tab may forward to the
next tab stop, and tab stops are set differently in different programs.
This is relevant, since this was about using tabs for formatting HTML
source.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html



Reply With Quote
  #34  
Old   
Neal
 
Posts: n/a

Default Re: Don't bother saving white-space - 08-20-2004 , 02:46 PM



On Fri, 20 Aug 2004 18:32:34 +0200, Andreas Prilop
<nhtcapri (AT) rrzn-user (DOT) uni-hannover.de> wrote:

Quote:
In what respect is a space more reliable than a tab? And what
about newlines? Don't you have any newlines in your souce text?
Space, tab, newline are equally valid white space.

Crimson Editor, and I'm sure others, allows you to use the tab to indent
your code, and it saves it as spaces instead. You get the time-saving
benefit of the tab key and the more predictable spacing of regular spaces,
both together.


Reply With Quote
  #35  
Old   
Eric Kenneth Bustad
 
Posts: n/a

Default Re: Don't bother saving white-space - 08-20-2004 , 02:52 PM



In article <Xns954BCA411E942jkorpelacstutfi (AT) 193 (DOT) 229.0.31>,
Jukka K. Korpela <jkorpela (AT) cs (DOT) tut.fi> wrote:
Quote:
Andreas Prilop <nhtcapri (AT) rrzn-user (DOT) uni-hannover.de> wrote:

In what respect is a space more reliable than a tab?

A space forwards exactly one character position. A tab may forward to the
next tab stop, and tab stops are set differently in different programs.
This is relevant, since this was about using tabs for formatting HTML
source.
Yes, so if I'm editing the file, I can set my tabstop to the identation
amount that I prefer, then when you edit or view the file, you can set
it to what you prefer. If the tool does not allow you to set tabstops,
get a better tool!

Note that I only use tabs to indent lines, so they at the beginning of
the lines.

--
= Eric K. Bustad
--
= Eric K. Bustad Voice: +1 732 949 6257
CAD Systems Engineering Fax: +1 732 949 7512
Lucent Technologies
Holmdel, NJ, USA


Reply With Quote
  #36  
Old   
Harrie
 
Posts: n/a

Default Re: Don't bother saving white-space - 08-20-2004 , 03:36 PM



Andrew Graham said the following on 19/08/2004 22:21:

Quote:
Stephen Poley wrote:

The first page loads in 3 seconds, the second in 8 seconds - both
figures seem to be repeatable. This suggests that if you took a file

Here are two more data points for you, both over 24kbps modem from USA
west coast:

2) wget:
D:\test>timethis wget -q
http://www.xs4all.nl/~sbpoley/webmatters/checklist.html | grep "Elapsed"
TimeThis : Elapsed Time : 00:00:05.107

D:\test>timethis wget -q
http://www.xs4all.nl/~sbpoley/misc/checklist.html | grep "Elapsed"
TimeThis : Elapsed Time : 00:00:15.322
$ time wget -q http://www.xs4all.nl/~sbpoley/webmatters/checklist.html
real 0m0.204s

$ time wget -q http://www.xs4all.nl/~sbpoley/misc/checklist.html
real 0m1.158s

I'm an xs4all user myself and 4 hops away from the xs4all webserver over
an ADSL line (2240/416 Kbit/s (down-/upstream)). Anyway, the ratio seems
to be the same for me on a fast(er) line very near to the server as for
Andrew over a slow(er) line in USA.

--
Regards
Harrie


Reply With Quote
  #37  
Old   
Spartanicus
 
Posts: n/a

Default Re: Don't bother saving white-space - 08-20-2004 , 03:38 PM



Neal <neal413 (AT) yahoo (DOT) com> wrote:

Quote:
Crimson Editor, and I'm sure others, allows you to use the tab to indent
your code, and it saves it as spaces instead. You get the time-saving
benefit of the tab key and the more predictable spacing of regular spaces,
both together.
Wastes bytes though.

Different people like different tab widths, so configuring this in the
user's editor is the right way to do it. One code example, and each
get's to see it with their preferred tab width.

--
Spartanicus


Reply With Quote
  #38  
Old   
Jan Roland Eriksson
 
Posts: n/a

Default Re: Don't bother saving white-space - 08-20-2004 , 03:54 PM



On Fri, 20 Aug 2004 18:32:34 +0200, Andreas Prilop
<nhtcapri (AT) rrzn-user (DOT) uni-hannover.de> wrote:

Quote:
On Fri, 20 Aug 2004, Jukka K. Korpela wrote:

I don't see why you would use tabs,

Because a tab says more than 1000 spaces - so to speak ;-)
I save lots of space characters for a single tab.
This discussion is moot, please end?

--
Rex




Reply With Quote
  #39  
Old   
Jan Roland Eriksson
 
Posts: n/a

Default Re: Don't bother saving white-space - 08-20-2004 , 08:01 PM



On Thu, 19 Aug 2004 20:55:33 +0100, Spartanicus <me (AT) privacy (DOT) net> wrote:

Quote:
Stephen Poley <sbpoleySpicedHamTrap (AT) xs4all (DOT) nl> wrote:

People in these groups, and on web-pages, not infrequently suggest that
it is worthwhile cutting down on white-space and comments in HTML and
CSS.
I have never seen that, but I have seen a lot of trolls in my life.

Quote:
I'd suggest that whitespace and comments are 2 different things.
I'd suggest that it's about time for _all_ of you "youngsters" out here
in this NG to put your back to it and go on to present a decent article
that describes solid results from studies you have made.

all the best...

--
Rex




Reply With Quote
  #40  
Old   
Karl Groves
 
Posts: n/a

Default Re: Don't bother saving white-space - 08-22-2004 , 08:23 AM




"Stephen Poley" <sbpoleySpicedHamTrap (AT) xs4all (DOT) nl> wrote

Quote:
People in these groups, and on web-pages, not infrequently suggest that
it is worthwhile cutting down on white-space and comments in HTML and
CSS in order to reduce loading times. I and others have more than once
doubted this, given the data-compression in the HTTP protocol. Having
seen it suggested again a couple of times in the last few days, I
decided it was time for a test on the effect of white-space.
I think that a far bigger problem, in terms of download times, is in the use
of presentational elements and attributes.[1]
In fact, I was recently charged with helping one of our clients (a large
gov't entity) decrease the file size of their pages. It seems like these
folks have never even heard of CSS. A typical page for them contains 8
nested tables (3-4 deep. I've seen up to 6-deep on their pages with forms)
and all presentation with HTML. NO CSS with exception of typography. Some of
their pages are 100kb+ of HTML alone. With images, they can get to 200kb
fast.
I'm not done with the project, but I'm guessing I can get them into the
15-25kb range and still keep their exact look & feel.


[1] - bigger, as it relates to this NG. The biggest problem, of course, is
images

-Karl




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.