This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > April 2007 > "tuning" CSS





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author "tuning" CSS
Jeremy

2007-04-06, 6:19 pm

Is it possible to develop inefficient CSS? I ask because when we strip
all the CSS out of a dynamic page, it loads into the browser in a flash.
When all the CSS is enabled, the browser seems to take (depending on the
browser IE seems slower than FF and depending on the PC too) potentially
a very long time (maybe up to 10 seconds) to finish laying everything
out. These are not terribly complex (as far as I can tell) pages and I
wonder whether the CSS can be coded in ways that can make it quicker for
the browser to understand the required result.

The page has 4 style sheets (plus a fifth if IE).

As an aside, in some caes we are using .png images which require some
special handling for IE - perhaps this is an extra layer of
complication.

Be grateful for any pointers.


--
jeremy

Bergamot

2007-04-06, 10:15 pm

Jeremy wrote:
> Is it possible to develop inefficient CSS?


It's actually very easy to develop inefficient CSS, I think. :)

> The page has 4 style sheets (plus a fifth if IE).


That's 4-5 separate trips to the server, at least for the first page.
After that the stylesheets should be pulled from the cache.

> As an aside, in some caes we are using .png images which require some
> special handling for IE - perhaps this is an extra layer of
> complication.


Of course it's an extra, but the actual time it takes to process may be
insignificant.

> Be grateful for any pointers.


A URL would be helpful.

--
Berg
selvadealma@gmail.com

2007-04-10, 6:17 pm

> Is it possible to develop inefficient CSS?

I'm a master at it

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews