473,473 Members | 1,583 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Jul 20 '05 #1
2 1832
go****@higginsnet.com (Dave Higgins) wrote:
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)
No it can be cached, same as any other file.
Or is it different if you link to, say, simple.css, which then
"@imports" advanced.css?
They can both be cached.
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?


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 <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2
On 20 Jan 2004 00:22:25 -0800, go****@higginsnet.com (Dave Higgins)
wrote:
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)


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/
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Carolyn Marenger | last post by:
Hey everyone, I am looking for your thoughts and opinions. Is it preferable to have one css file containing all the style information or break it up into multiple imported files for different...
2
by: Naveen | last post by:
Hi, Is it possible to download multiple documents in one go in ASP.Net ? My requirement is something like this : I have a checkbox list with a list of documents. User can select one or more...
0
by: Adam Smith | last post by:
Hello. I've got a total of 5 schemas. They are: 1 - 1.xsd - a description of a city 2 - 2.xsd - a description of a town 3 - CityHall.xsd - a description of a cityhall-meant to be part of a...
2
by: splashout1 | last post by:
Hi I have searched and found lots of stuff and played with some but couldnt get anything to even remotely work. I have a directory with multiple .csv files i would like to import them all into a...
2
by: Shawn | last post by:
Hi. I have a page where the user can choose from 10 files he can download. When the user clicks on a file a new window pops up and redirects to the requested file. If the user wants to dowload...
0
by: jakub | last post by:
Hi, I would like to make some DTS package that loads into one table all txt files that are located in one directory (but I don't know how to do it). Any help appreciated. br, jakub
1
by: HenryV1955 | last post by:
Hi people Can I use Inet controls to download multiple files at once using a wildcard char, similar to 'MGET' in FTP? thanks
1
by: jon | last post by:
Hello, I currently have a html and a css file with a @import rule and a url (see example below) test.html <style type="text/css" media="screen"> <!-- @import url("index_files/p7tp_01t.css");...
5
by: Axel Siebenwirth | last post by:
Hi, I've tried to do this but it does not work. table.anmeldung tr + td { font-weight:bold; } I'm looking for an easy way to bolden the left column in this table:...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.