big css file

if i have a 100 kb css file will it make my site slow? i mean is the css file only read when particular styles are applied or is the whole file Download ed first.

is it better to have a smaller css file rather than a bigger one to make browsing fast??wow 100kB?!
that's not big, that's huge!

do you have like thousands of pages with each different style or what?
if yes, you might wanna split that up in different files and keep one for the general layout, because if there are that many pages, it would surprise me that a user visits the whole site.

With this technique, the CSS file would only be loaded when needed. The general CSS file would always be loaded (with the first page).

Maybe your CSS is redundant, you might wanna post it so we can take a look at it.if i have a 100 kb css file will it make my site slow? i mean is the css file only read when particular styles are applied or is the whole file Download ed first.
Yes, the whole stylesheet will be Download ed by the browser, then it calls any necessary styles from the stylesheet, then it applies any applicable styles to the MarkUp.
is it better to have a smaller css file rather than a bigger one to make browsing fast??
In your case, Yes. 100Kb is a HUGE for a standard Css file and should really be broken up into various smaller files.

However the best practice is to; create one stylesheet that has all the commonly (used on 80%+ pages) used styles, it will be of resonable size and will only need to be Download ed once - the browser will add it to it's cache

Then the other styles will only be Download ed if neede.my style sheet is only 7 kB. I have here used 100 kB for only the Question.
Anyways thanks i got the answer
the css file is Download ed first.
thanks. m gonna make tht file still smaleer.The size of the style sheet will determine whether it's better from a load time standpoint to link or embed. A 7k sheet should probably be embedded, a 100k sheet should probably be linked.got tht100k stylesheet?!

Don't scare us like that:pyeah, that's almost like 100k garlic!I sent you a PM fuzzy. I'm a changing my theme again.Yeah, the PM was smelling garlic, had to delete it :p
Now, be careful, we are O/T here, so let's get out of this thread
 
Back
Top