|
Posted by Beauregard T. Shagnasty on 10/03/68 11:36
Greg N. wrote:
> Beauregard T. Shagnasty wrote:
>
>>>Under PHP, I found it makes little sense to call external style
>>>sheets. Rather, I use inline style sheets which are generated through
>>>PHP along with the rest of the page.
>
>> Doing that penalizes the visitor, who has to download the same styles
>> with each page. Why not conserve the bandwidth and have your PHP just
>> generate the <meta ...> line to include the css file? Downloaded once,
>> and cached.
>
> "penalize", bull.
Bull? Is it not true that the styles download for each page? Oh, you
don't think that's a penalty.
> A style sheet is, what? 1k bytes or so.
Maybe yours is just 1kb. I tend to put all of the styles in the external
style sheet, unlike yours with all the inline styles in addition to the
<style..> block. From the site in your sig:
<div class=content>
<div style="height:120px; width:95%">
<div class="columns"
style="height:250px; margin-left: auto; margin-right: auto;">
....
<p>
<a href="http://jigsaw.w3.org/css-validator/check/referer">
<span style="background: #ddbb66; font-family:serif; font-size: 10pt;
color:#777777;">
<span style="background: #cccccc;">W3C</span>
<span style="font-size: 8pt;">css</span>
</span></a>
Mine are also quite a bit more complicated than yours.
> Even with a
> lousy 50kbit tlelphone line, that's less than 1/5th of a second. It
> probably takes the UA the same time to process another file request,
> even if that request is served from some cache.
Ok then, let's talk about server processor time spent generating it for
every page. One <meta> line in the template would save all of that.
--
-bts
-Warning: I brake for lawn deer
Navigation:
[Reply to this message]
|