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 took one of my pages: http://www.xs4all.nl/~sbpoley/webmatters/checklist.html
which is 20 Kb.
I then bloated it with whitespace to 162 Kb (nothing special about that
number - it's just what it happened to end up as): http://www.xs4all.nl/~sbpoley/misc/checklist.html
I tested them over my 46 Kbps modem connection (yes: 46, not 56; don't
ask - I don't know either) using Opera 7.
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
with a fairly generous 5Kb of white-space, and stripped out all of it,
loading would be speeded up by a princely one-sixth of a second. (For
comparison, the largest HTML file on my site, of 79Kb, turned out to
have just under 3Kb of compressible white-space.)
Somehow it just doesn't seem worth it ...
--
Stephen Poley http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05
45 3498
On Fri, 20 Aug 2004 18:32:34 +0200, Andreas Prilop
<nh******@rrz n-user.uni-hannover.de> wrote: 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
On Thu, 19 Aug 2004 20:55:33 +0100, Spartanicus <me@privacy.net > wrote: Stephen Poley <sb************ ******@xs4all.n l> 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.
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
"Stephen Poley" <sb************ ******@xs4all.n l> wrote in message
news:0m******** *************** *********@4ax.c om... 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
JRS: In article <cg**********@n gspool-d02.news.aol.co m>, dated Sun, 22
Aug 2004 08:23:33, seen in news:comp.infos ystems. www.authoring.html,
Karl Groves <ka**@NOSPAMkar lcore.com> posted : 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.
What would the size of an approximately 800*600 GIF, PNG, or whatever of
such a page be? I tested with about enough plain text (from a Web page)
to fill a printed page, and that was under 19kB as a GIF. A GIF of
proposed garden changes is here 5-6kB; about and has as much structure
as a Web page needs.
Granted, for some users it will not fill the screen; on the other hand,
all[*] who see it will see it very much as the designer intended.
[*] Well, all with colour screens and sight. The less abled might be
better served with a plain-text version.
--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.c om/faq/> JL/RC: FAQ of news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Dr John Stockton wrote: JRS: In article <cg**********@n gspool-d02.news.aol.co m>, dated Sun, 22 Aug 2004 08:23:33, seen in news:comp.infos ystems.www.authoring.html, Karl Groves <ka**@NOSPAMkar lcore.com> posted :
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.
What would the size of an approximately 800*600 GIF, PNG, or whatever of such a page be? I tested with about enough plain text (from a Web page) to fill a printed page, and that was under 19kB as a GIF. A GIF of proposed garden changes is here 5-6kB; about and has as much structure as a Web page needs.
That idea is... horrible. Sorry.
"Neal" <ne*****@yahoo. com> wrote in message
news:op******** ******@news.ind ividual.net... On Fri, 20 Aug 2004 18:32:34 +0200, Andreas Prilop <nh******@rrz n-user.uni-hannover.de> wrote:
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.
It's ironic that many people in this NG wax lyrical about not imposing their
view onto the client and that you merely suggest a presntation, yet these
same people try to impose a view on developers.
Always use tabs; if they are enabled they will indent the code to the level
desired by the developer. If they are not enabled, they will degrade to a
single space which provides some structuring, but not at the expense of lots
of spaces...
[PS. I think lots of editors these days allows you the option to vary the
Tab indentation and to apply Tabs as spaces...] This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: mike420 |
last post by:
In the context of LATEX, some Pythonista asked what the big
successes of Lisp were. I think there were at least three *big*
successes.
a. orbitz.com web site uses Lisp for algorithms, etc.
b. Yahoo store was originally written in Lisp.
c. Emacs
The issues with these will probably come up, so I might as well
mention them myself (which will also make this a more balanced
|
by: theodp |
last post by:
--> From http://www.techdirt.com/articles/20040406/1349225.shtml
Microsoft Patents Saving The Name Of A Game
Contributed by Mike on Tuesday, April 6th, 2004 @ 01:49PM
from the yeah,-that's-non-obvious dept.
theodp writes "As if there weren't enough dodgy patents, here's an
excerpt from one granted to Microsoft Tuesday for a 'Method and
apparatus for displaying information regarding stored data in a gaming
system': 'When saving a game,...
|
by: Xiaotian Sun |
last post by:
I added the following line to the header of my html file
<meta http-equiv="content-type" content="text/html; charset=utf-8">
hoping browsers will use UTF-8 encoding. But all browsers I tried still
use ISO-8859-1.
What did I do wrong?
Thanks,
|
by: Xah Lee |
last post by:
is there a way to condense the following loop into one line?
# -*- coding: utf-8 -*-
# python
import re, os.path
imgPaths=
# change the image path to the full sized image, if it exists
|
by: #kiss# |
last post by:
hey guy !!
i m a beginer on C prog...i m using DEV-C IDE but when i m running a .EXE
the dos window open , run the .EXE and closed quickly, how could i do if i
don't want the dos window closed....what kind of code could i write at the
end ??
| |
by: Karen Grube |
last post by:
Hi!
I hate to bother you all with this, but I don't know how best to approach
a particular task.
Here's the deal:
Once a month I personally (that is, in my own personal inbox on my company's
email server) receive an email from one of our vendors to which is attached a
text file (a comma-delimited data file containing the details of our monthly
|
by: Chantal |
last post by:
Hello everybody,
I'm relatively new to javascript + DOM so I've a question :
I'm removing <div> elements in DOM with javascript.
It works perfectly in Firefox and Opera : I mean the DOM is refreshed
automatically and I see the changes.
But in IE (version 6), I don't see any changes. Do I have do to
something more with IE to tell "him" to refresh the DOM.
|
by: TheGanjaMan |
last post by:
Hi everyone,
I'm trying to write up a simple image stamper application that stamps the
Exif date information from the jpegs that I've taken from my digital
camera and saves the new file with the date stamped on the lower right
part of the picture. (I'm not an advanced programmer so my code may not
be 100% efficient - sorry, I'm still learning)
Everything works fine until the saving part. I've been able to read the
file into a...
|
by: Pradeep Varma |
last post by:
Hi,
I am using Acrobat 6.0. I am trying to save an Access report to a PDF
file using the Acrobat Distiller but came across an error message
“ActiveX component cannot create object –429”. I have tried all sorts of
things based on information that I got but not able to get rid of the
same.
The code that I use is:
|
by: Eric |
last post by:
When i bound the other form in my main form. The whole first subform
area is covered with white color. But when i bound another form its not
shows the whole area in white color. Why my one subform shows the whole
area in white color. I mean its nothing shows any thing in that area.
But my other form shows all of the fields and labels in that area where
i created it.
Thanks.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |