You are here: Re: CSS: Any way to use variables or constants? « HTML « IT news, forums, messages
Re: CSS: Any way to use variables or constants?

Posted by Greg N. on 01/20/17 11:36

Beauregard T. Shagnasty wrote:

>>"penalize", bull.

> Bull? Is it not true that the styles download for each page? Oh, you
> don't think that's a penalty.

It certainly depends on the individual site. In my case, the inline
styles add 0.01 % to my site's bandwidth requirements. You may call
that a penalty, I say it does not matter. In my case, anyway.

> 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="columns"
> style="height:250px; margin-left: auto; margin-right: auto;">

Well, these are inline styles for a reason. They are computed by PHP
depending on the size of the individual images being displayed. There
can be dozens of variations of that code on a page. Not really practical
to put that in any style sheet.

>>> 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.

Shifting the critique away from user penalty to server penalty? Again,
we're talking about less than one-tenth of a percent of my server
workload. Peanuts.

--
Gregor's Motorradreisen:
http://hothaus.de/greg-tour/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация