[thelist] Dynamically Generated External CSS file (fwd)

Eric Engelmann eric at geonetric.com
Thu Jun 7 15:35:51 CDT 2001


Two downsides:

1. Including all of the <style> information in each page makes each page
take slightly longer to download (because it has to download all of that
info each time separately). An external stylesheet is generally cached, so
it is downloaded only once.
2. More importantly, if every page on the site hits the database just for
this purpose, I'd think there'd be a performance and scalability issue. If
every page is built dynamically from the db for another reason, too, then it
won't be nearly as big of a deal.

- E

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Siim Einfeldt aka
Itpunk
Sent: Thursday, June 07, 2001 3:24 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] Dynamically Generated External CSS file (fwd)



The way I use CSS in my dynamic websites, is the following. I usually
generate the styles through a web based admin and write them directly into
the database (php-mysql). And when page loads, I just simply pull them out
of the database so that when checking the source it looks like the css has
been written to every page separately. Imo this is a good solution, what
do you all think?

Cheers
Siim Einfeldt
ITpunk Music Web
www.itmusicweb.co.uk

 > ---------- Forwarded message
---------- > Date: Thu, 7 Jun 2001 15:11:34 -0500
> From: Eric Engelmann <eric at geonetric.com>
> To: "Thelist at Evolt. Org" <thelist at evolt.org>
> Subject: Dynamically Generated External CSS file
>
> Any reason not to do
>
> <link rel="stylesheet" type="text/css" href="/style.asp">
>
> to create 'separate' stylesheets for IE, NN? Seems to work okay on IE 5,
NN
> 4.
>
> The only thing I can think of is that it'll mess up caching somehow (so
it'd
> get executed each time), since your browser may not know how to store a
.asp
> file in the cache or something, but I don't know why, since it can store
the
> results of a regular page just fine... Haven't seen any problems so far.
>
> Anyone tried this and found some glaring problem?
>
> Other options:
> * Mapping .css to asp.dll (which I saw recently on this list... but I'd
> rather avoid it if possible. Setting up more server mappings in IIS is
just
> scary, given that the MS security checklist basically removes them all
> except asa,asp)
>
> * client-side JS to detect and select a styleshee (ala
> http://lists.evolt.org/archive/Week-of-Mon-20000724/148855.html) ... but
> would prefer not to depend on JS (though, its true that if you have CSS
> support, you'll usually have JS support).
>
> - Eric
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
>


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list