Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 10:24 PM
Dave Higgins
Guest
 
Posts: n/a
Default Multiple CSS downloads with the @import rule?

When the @import rule is used in the html markup to hide advanced css
from older browsers, is that css downloaded with every page from a
site? (which would be redundant)

Or is it different if you link to, say, simple.css, which then
"@imports" advanced.css?

How can I reduce the bandwidth load (i.e. client get the css from the
client cache) or is it not an option with @import?

TIA

Dave Higgins
  #2  
Old July 20th, 2005, 10:24 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: Multiple CSS downloads with the @import rule?

google@higginsnet.com (Dave Higgins) wrote:
[color=blue]
>When the @import rule is used in the html markup to hide advanced css
>from older browsers, is that css downloaded with every page from a
>site? (which would be redundant)[/color]

No it can be cached, same as any other file.
[color=blue]
>Or is it different if you link to, say, simple.css, which then
>"@imports" advanced.css?[/color]

They can both be cached.
[color=blue]
>How can I reduce the bandwidth load (i.e. client get the css from the
>client cache) or is it not an option with @import?[/color]

Nothing you need to do, normally. If your server is sending out http
headers with .css files that discourage caching then that would be a
problem.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #3  
Old July 20th, 2005, 10:24 PM
Stephen Poley
Guest
 
Posts: n/a
Default Re: Multiple CSS downloads with the @import rule?

On 20 Jan 2004 00:22:25 -0800, google@higginsnet.com (Dave Higgins)
wrote:
[color=blue]
>When the @import rule is used in the html markup to hide advanced css
>from older browsers, is that css downloaded with every page from a
>site? (which would be redundant)[/color]

No. In fact I make use of that to determine what percentage of my
visitors are using older browsers, based on the site logs. (Still around
3%).

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles