Re: css sheets in designs

From: Date: Mon, 13 May 2002 21:19:16 +0000
Subject: Re: css sheets in designs
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-97426@lists.php.net to get a copy of this message
Dennis Gearon wrote:
CSS sheets have to be in the document root somewhere, don't they? I'm trying to move as much, or at least what I consider security related, from the phpnuke in the document root to a directory outside of the document root.
In our experience it's better to just have the HTML pages link to the style sheet files, and keep them in a directory that is publicly accessible. If your CSS files are large, you'll notice a reduction in bandwidth because most browsers will do another request, get a 304 from the server, and not have to download anything else. Same goes for javascript ".js" files. I noticed a site the other day that was over 80k to download. 38k was javascript and stylesheet stuff that was being reloaded on every page request. Bandwidth reduction by 50% wouldn't have been hard for them. Granted most people aren't worried about bandwidth costs, but a 50% reduction is page loading speed is something more people seem to notice. Michael Kimsal http://www.logicreate.com

« previous php.general (#97426) next »