Jochen Daum wrote: > Hi, > > Putting all css into a single file by minifying, combining and > compressing it is a better strategy, because you don't know which > pages your visitors are going to use. In the end they may download the > same snippes of css in all sorts of pages. > > Also, structuring your css in a way that "reuses" your styles across > the site is very helpful. > > Finally, work on setting the cache headers correctly for css - this > may extend to your web server configuration - will generally reduce > the amount of traffic generated. This has a positive effect on both > cost and user experience obvisouly > > I'm with Jochen on this. Generally speaking, it's good to put everything into one big CSS file, and the extra download size will be insignificant once it's minified and gzipped. This saves one extra request per page, which adds up.
The exception to this would be for things like forums which might generate a tonne of CSS just for that section of the site, so keep that in forums.css and not in the main file. Harvey. --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
