- How to condense HTML source?
- Posted by Mark Findlay on January 17th, 2004
This page: http://www.soberrecovery.com/links/c...ndtherapy.html has
condensed HTML code. That is, when you VIEW SOURCE on the page, all
whitespace is removed and presumably this is done to make the file smaller
and display faster.
Are there any drawbacks to this? Can anyone refer me to a tool that
accomplishes this?
Thanks!
Mark http://www.sagecomputerservices.com
- Posted by Vladdy on January 17th, 2004
Mark Findlay wrote:
font tags. That goes for both your site and the one you referenced.
--
Vladdy
http://www.klproductions.com
- Posted by Mark Findlay on January 17th, 2004
A website without tables? I can't imagine a website except the simplest of
pages not using tables. But even just removing the <table> tags would only
amount to a few bytes. I'm looking to condense the entire HTML page saving
possibly thousands of bytes on larger pages.
Mark
"Vladdy" <vlad@klproductions.com> wrote in message
news:27%Nb.117$9L4.90@nwrdny03.gnilink.net...
- Posted by David Dorward on January 17th, 2004
Mark Findlay wrote:
Please direct your attention towards:
http://www.allmyfaqs.com/faq.pl?How_to_post
Then you are probably abusing tables for non-tabular data.
http://www.allmyfaqs.com/faq.pl?Tableless_layouts
The table tags and the rest of the presentational markup. Depending on how
bad the code is to start with, the savings can easily reach 80%.
http://sourceforge.net/projects/mod-gzip/ might be of interest.
--
David Dorward <http://dorward.me.uk/>
- Posted by brucie on January 17th, 2004
in post: <news:adadnU1tXoVT4ZXdXTWc-w@speakeasy.net>
"Mark Findlay" <mfindlay@speakeasy.org> said:
a waste of time.
don't bother.
--
brucie - i usenet nude
- Posted by Toby A Inkster on January 17th, 2004
Mark Findlay wrote:
You can achieve *more* complicated designs without tables than you can
with them!
Check out http://www.hardcandy.org/. And then try to replicate that layout
using table cells. AFAIK, can't be done.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132
- Posted by Steve R. on January 17th, 2004
Mark Findlay wrote in message ...
(1) It didn't load *quickly*
(2) If quick-loading was the aim, then those oversized (file-size) images
need some serious web-image optimisation.
- Posted by Hunter on January 17th, 2004
"Mark Findlay" <mfindlay@speakeasy.org> wrote in message
news:adadnU1tXoVT4ZXdXTWc-w@speakeasy.net...
Drawbacks ? Of course - it's a complete waste of time.
White space being removed will have nothing to do with processing time - I
don't think you understand how a webpage is parsed by the browser.
- Posted by Barry Pearson on January 17th, 2004
Toby A Inkster wrote:
[snip]
Are you talking about the border?
It can be done, at least with some browsers. (Quick mock-up, HTML 4.01 Strict
& CSS validated at W3C):
http://www.barry.pearson.name/test/test.htm
Whether you would want to is another matter!
(And the above probably only works because I put the borders on the table
cells using CSS! I don't see things as "either tables or CSS". They are simply
techniques to be used separately or in combination to achieve what you want as
effectively as possible).
--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
- Posted by Steve Pugh on January 17th, 2004
"Barry Pearson" <news@childsupportanalysis.co.uk> wrote:
And presumably the way the text flows within those borders.
The inside of Toby's original is a single div and thus text can just
be inserted in there and left to flow around the various boxed
intrusions. Consequently his versions adapts well to various window
and text sizes and there are no unnatural breaks within the content.
The inside of your version is 23 separate table cells. With a bit of
colspan and rowspan that can probably be reduced to 4 or 5 cells, but
still the content will have to be split up amongst those cells. The
table version is without a doubt less flexible.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>


