[thelist] PAGE OPTIMIZATION: source readability v. download weight

Michael Mell mike at nthwave.net
Wed Jun 12 13:33:01 CDT 2002


one tab is less bytes than two spaces and gives better indent

for most of my tables, I don't indent cells, but
I give a blank line between rows:

<table>
<tr>
<td>hello world!</td><td>hello world!</td>
</tr>

<tr>
<td>hello again!</td><td>hello again!</td>
</tr>

<tr>
<td>hello again!</td><td>hello again!</td>
</tr>
</table>

"Chris W. Parker" wrote:

> hi!
>
> i was toying with making my pages as small as possible and found that on
> some of the longer pages i can take off about 10k of space characters
> from the formatting of the code.
>
> for example...
>
> <table>
>   <tr>
>     <td>hello world!</td>
>   </tr>
> </table>
>
> becomes...
>
> <table>
> <tr>
> <td>hello world!</td>
> </tr>
> </table>
>
> -----
>
> now i think the second one is VERY ugly and i do not want to do it that
> way. recently i came across a bookmarklet that measures the 'weight' of
> the page you are viewing. i haven't examined the link itself, so i don't
> know what it is counting for the weight, but i can say that if i remove
> one character it goes down by 1 byte. so it's close enough.
>
> anyways... i've almost become obsessed with seing this number drop as
> low as i can get it.
> <nervous-crazy-laugh>hahahaha!!</nervous-crazy-laugh>
>
> usually i use two spaces to indent mine tags, but now i'm thinking maybe
> i'll use just one. that will cutout at least half of course.
>
> but my question to you people is "what's more important? the ability to
> read the source easily through organization and spacing, or shaving off
> almost 10k (depending on the length of the page of course) from the page
> size?"
>
> news of tools, utilities, suggestions, ideas, etc. are welcome.
>
> thanks,
> chris.
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !

--
mike[at]nthwave.net
llemekim         YahooIM
415.455.8812     voice
419.735.1167     fax





More information about the thelist mailing list