RE: Link or @import (was Re: [WSG] Which is read first? Scripts or Styles?)

2008-11-25 Thread Foskett, Mike
Using the link tag prevents parallel downloads in the same manner as the
script tag for javascript.
The style tag with the @import method does not.

Mike

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of David Dorward
Sent: 25 November 2008 13:25
To: wsg@webstandardsgroup.org
Subject: Link or @import (was Re: [WSG] Which is read first? Scripts or
Styles?)

Foskett, Mike wrote:
 I'd add a furtherance to Steve Sounders / Yahoo's recommendations and
 use the @import method for style sheets and not link.

Why?

Netscape 4 isn't an issue any more so using @import to hide CSS from it
is pointless, but it does trigger a FOUC in MSIE, which is undesirable.

Embedding a stylesheet in a document which does nothing except load an
external stylesheet is conceptually inelegant (and very slightly off
track for the separation of style from content).

-- 
David Dorward   http://dorward.me.uk/


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



---Warning

This e-mail is from outside Tesco - check that it is genuine. Tesco may
monitor and record all e-mails.



 Disclaimer 
This is a confidential email.  Tesco may monitor and record all emails.  The 
views expressed in this email are those of the sender and not Tesco.

Tesco Stores Limited
Company Number: 519500
Registered in England
Registered Office: Tesco House, Delamare Road, Cheshunt, Hertfordshire EN8 9SL
VAT Registration Number: GB 220 4302 31



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



RE: Link or @import (was Re: [WSG] Which is read first? Scripts or Styles?)

2008-11-25 Thread Foskett, Mike
Sorry,
I forgot to add that FOUC doesn't occur if the style tag is followed by
any other valid tag, eg script .../script which is opened and closed
separately.
Though to be honest I cannot remember the last time I incurred the bug.

Mike Foskett
http://websemantics.co.uk/


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Foskett, Mike
Sent: 25 November 2008 13:50
To: wsg@webstandardsgroup.org
Subject: RE: Link or @import (was Re: [WSG] Which is read first? Scripts
or Styles?)

Using the link tag prevents parallel downloads in the same manner as the
script tag for javascript.
The style tag with the @import method does not.

Mike

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of David Dorward
Sent: 25 November 2008 13:25
To: wsg@webstandardsgroup.org
Subject: Link or @import (was Re: [WSG] Which is read first? Scripts or
Styles?)

Foskett, Mike wrote:
 I'd add a furtherance to Steve Sounders / Yahoo's recommendations and
 use the @import method for style sheets and not link.

Why?

Netscape 4 isn't an issue any more so using @import to hide CSS from it
is pointless, but it does trigger a FOUC in MSIE, which is undesirable.

Embedding a stylesheet in a document which does nothing except load an
external stylesheet is conceptually inelegant (and very slightly off
track for the separation of style from content).

-- 
David Dorward   http://dorward.me.uk/


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



---Warning

This e-mail is from outside Tesco - check that it is genuine. Tesco may
monitor and record all e-mails.



 Disclaimer 
This is a confidential email.  Tesco may monitor and record all emails.
The views expressed in this email are those of the sender and not Tesco.

Tesco Stores Limited
Company Number: 519500
Registered in England
Registered Office: Tesco House, Delamare Road, Cheshunt, Hertfordshire
EN8 9SL
VAT Registration Number: GB 220 4302 31



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



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