On 11/11/10 4:57 AM, "G.Sørtun" wrote:
Years since I tested what browsers actually did, and much has changed
since then.

I do prefer to spread styles in logical groups over a few stylesheets,
to a certain degree. If nothing else it helps on maintenance and reuse.

1. Will the desktop browser stops loading the above 3 media unless
requested?

A browser will load everything, as long as it supports, or pretends to
support, the link or @import media and queries used. It will put styles
to use as needed and supported.

2. If I link each media type individually, does the desktop browser
actually load the above 3 style sheets?

Same answer.

[...]

So, it is my advice that you don't filter more than you have to at the
link and @import stages, even if that means slightly fatter stylesheets.


In addition to Georg's (always) excellent advice, there are several
ways of slimming down style sheets that might help you, Tee:

1. Use a "set styles" instead of a "reset" to avoid duplication

2. Minify your style sheets (can be done on the server)

3. Gzip all text-based assets. (You do that anyway, right?)

4. Combine those style sheets you can using server-side code.

(But I may be teaching my grandmother to suck eggs[1]...)

Cordially,
David
--
[1] <http://en.wikipedia.org/wiki/Teaching_grandmother_to_suck_eggs>




*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to