as i'm working on a rather large site at the moment, i wanted to know whether it is reasonable to use several .css files.
for example, as i'm coding in php, i would create a bottom.php file, which i can call in from every page, which is supposed to include this.
now, instead of having to include the whoée lot of css into one single file, is it any better to create a bottom.css apart from the main.css?
-will i still have to call in the css in the <head> section of the page, or is there another trick? as i might end up calling 5/6 different css files from the start...?
-can i add a <head> section to every single .php file?
More CSS files = more initial requests to the server = slightly slower loading the first time a page with those linked CSS files is requested. If performance is absolutely critical to your site (i.e. you have too many other bottlenecks already), then I wouldn't use the multiple sheets. However, if you feel it will make you more organized to go into a CSS file and instantly know what's going on and performance is fine on the site right now, then keep the CSS files. Your time is probably far more expensive than the site's bandwidth anyway .
but if people go across from page to page, only a small css file might change once in a while, which should then be faster, no?
i think, staying organised is probably very important, working on a site this size...
and the load time shouldn't be affected through anything additionally heavy like flash...
Bookmarks