[WEB4LIB] Re:
Thomas Dowling
tdowling at ohiolink.edu
Sun Mar 6 12:04:59 EST 2005
Tom Keays wrote:
> ...That said, stylesheets often bloat
> up -- especially if you're borrowing an existing stylesheet and
> applying it to a new site -- with tags that are not being applied. Do
> an analysis of your site and see what classes and IDs are actually
> being used and snip out (and set aside in case you need them later).
> Look at all the unclassed tags (p, span, a) and see if there is
> redundancy that can be snipped out.
>
>
All true, of course. But consider it in this context: squeezing out all
the redundancies, unneeded properties, and even whitespace in a
stylesheet may save you a few kilobytes. Careless choices about JPEG
compression or palette sizes for GIFs and PNGs can add back several tens
of kilobytes over several pages, as may server settings that defeat
browser caching, or using two similar images on different pages instead
of using the same image in both places.
--
Thomas Dowling
tdowling at ohiolink.edu
More information about the Web4lib
mailing list