[thelist] PAGE OPTIMIZATION: source readability v. download w eight

jcanfield at magisnetworks.com jcanfield at magisnetworks.com
Wed Jun 12 14:21:07 CDT 2002


> 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?"

Know your audience. My intranet code is heavily commented and formatted so a
blind donkey could grok most of it. I even throw VbCrLf into my
automatically generated code, just to make it easier to debug or play with
later.

But if I were targeting a dial-up crowd or someone who would notice the
difference between a 50k page and a 40k page, I'd write concise code even if
it was a little harder to read. I use TextPad, so the syntax highlighting
makes even poorly formatted code easier to read. But I'd never do anything
like stringing it all on one line to avoid 146 newline characters or
anything like that.

joel



More information about the thelist mailing list