[wp-hackers] Outputting Clean Well Indented and Readable X/HTML

Otto otto at ottodestruct.com
Mon Mar 14 17:09:06 UTC 2011


On Mon, Mar 14, 2011 at 11:59 AM, Nathan Rice <ncrice at gmail.com> wrote:
> But, the downside to this is that all those linebreaks and tabs do add up to
> a larger filesize when users access your site. You could potentially be
> adding 10-20% download times by doing it your way.

If your server is sending gzip'd or deflated data to begin with (as it
should be), then this effect is minimized. That increase should be
under 1% or so.

> I'd run Google Page Speed
> or YSlow to see what, if any, negative effects having tidy HTML actually
> adds, and weight it against the positive effects.

Agree with this, however note that some of these tools don't take
server compression into account, and can provide a misleading
viewpoint sometimes.

Also, if you want to do this sort of thing, you should really just do
it at the server level. Install Google's mod_pagespeed and watch it
solve most of your problems automagically.

-Otto


More information about the wp-hackers mailing list