Rafael wrote:
> Chris Broadfoot wrote:
>> Rafael wrote:
>>> Having separate style sheets usually helps to keep everything
>>> organized (depending on how you build them), but it also gives you
>>> more connections to the server. So what you can do is to make use of
>>> that server-side language you have, just make sure to send the
>>> appropriate HTTP headers. I.e:
>>> In the (x)HTML page:
>>> <link rel="stylesheet" type="text/css"
>>> href="css.dynamic.xxx/common/web" />
>>> In css.dynamic.xxx, something like
>>> - split path-info by '/'
>>> - check by matching against the available files
>>> - send headers and embed all the files into one
>>
>> I personally don't like this idea. You have no benefit from caching
>> and might as well include all those styles in an inline <style> tag.
I don't understand you, "You have no benefit from caching"? As far
as I know, caching is better than having the browser download the same
content over and over again. If you meant that such benefit is not
present here, you're wrong, it is, that's what the Last-Modified header
is for ---It still opens a connection though, since it has to check
what's the last modification date.
"and might as well include all those styles in an inline <style>
tag". Well, yes. Having a server-side script to build the CSS file will
allow you to use that content in any way you want, including putting it
in a style tag (I'll assume "inline" is a typo). Now, why would you want
that...? If we're talking about a potentially large file, I doubt you'll
ever want to add that to every file you send to your users, would you?.
>> I think styles for each page is inherently bad, your styles across
>> the site should be consistent, therefore you shouldn't /need/ a large
>> amount of specific styles for pages.
We don't know what are the specifics of this case, so we can't
decide that (IMO). Also, having a consistent style across the site
doesn't necessarily mean having a small file.
I hope you can see my point: I can't see yours.
>> Regards,
>> Chris
Rafael.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/