Previous Message
Next Message

[css-d] Are external CSS files cached by decent browsers?

Sent by Timothy J. Luoma on 11 June 2002 11:11


I've got about 350 lines in my CSS file (I'm sure some folks have a lot
more, that's not the point)

Looking through it, I realize that there are some styles that are specific
enough that they are just never going to be used anywhere other than a few
sub-folders (i.e. not site wide) and I thought about taking them out and
putting them in a separate CSS file.

Personally I like having one main CSS file though, I think it makes it
easier to maintain, and my hope/expectation is that modern browsers will
be smart enough to cache it so that it won't have to be downloaded over
and over again.

I also think that having one large CSS file is going to be better for
visitors, who don't have to wait for a second file to be d/l if they do
reach one of the sub-directories that would otherwise have its own
styles.css file


So I ask this question: Will having one large CSS file actually benefit
folks on slower connections over time [i.e. assuming they visit a few
pages on my site] or will it be slower because the CSS file has to be
re-downloaded time and time again?

Thanks
TjL

-- 
Timothy J. Luoma    [EMAIL-REMOVED]    http://www.tntluoma.com
          3 Steps to getting a better answer on CSS-D (imo):
         What's the URL / URI? (put up temp copy if possible)
Does the CSS/HTML validate?              How does it look in Mozilla?
Previous Message
Next Message

Message thread: