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  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]
***



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: [WSG] Which is read first? Scripts or Styles?

2008-11-25 Thread Brett Patterson
Ooh! Thanks for the link. Valuable reading. I do not, however, understand
the ETags. So, I guess I must do a lot more research. Thanks.

On Tue, Nov 25, 2008 at 7:14 AM, Foskett, Mike <[EMAIL PROTECTED]>wrote:

> I'd add a furtherance to Steve Sounders / Yahoo's recommendations and
> use the @import method for style sheets and not link.
>
> Mike Foskett
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf Of Dave Hall
> Sent: 24 November 2008 21:07
> To: wsg@webstandardsgroup.org
> Subject: Re: [WSG] Which is read first? Scripts or Styles?
>
> On Mon, 2008-11-24 at 10:24 -0500, Brett Patterson wrote:
> > I have no idea why, but for some reason I cannot remember which is
> > read first! Are scripts or styles read first?
>
> As others have mentioned, they are read in the order they occur in the
> document.
>
> >  And which is the recommended order to list them? Styles or Scripts
> > first?
>
> Yahoo's performance best practice guide recommends styles in the head
> and scripts as the last thing before the  in a document. See
> http://developer.yahoo.com/performance/rules.html#css_top for more info.
>
> Cheers
>
> Dave
>
>
>
> ***
> 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]
> ***
>
>


-- 
Brett P.


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

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

2008-11-25 Thread David Dorward
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   


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



RE: [WSG] Which is read first? Scripts or Styles?

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

Mike Foskett


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Dave Hall
Sent: 24 November 2008 21:07
To: wsg@webstandardsgroup.org
Subject: Re: [WSG] Which is read first? Scripts or Styles?

On Mon, 2008-11-24 at 10:24 -0500, Brett Patterson wrote:
> I have no idea why, but for some reason I cannot remember which is
> read first! Are scripts or styles read first?

As others have mentioned, they are read in the order they occur in the
document.

>  And which is the recommended order to list them? Styles or Scripts
> first?

Yahoo's performance best practice guide recommends styles in the head
and scripts as the last thing before the  in a document. See
http://developer.yahoo.com/performance/rules.html#css_top for more info.

Cheers

Dave



***
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: [WSG] Which is read first? Scripts or Styles?

2008-11-24 Thread Dave Hall
On Mon, 2008-11-24 at 10:24 -0500, Brett Patterson wrote:
> I have no idea why, but for some reason I cannot remember which is
> read first! Are scripts or styles read first?

As others have mentioned, they are read in the order they occur in the
document.

>  And which is the recommended order to list them? Styles or Scripts
> first?

Yahoo's performance best practice guide recommends styles in the head
and scripts as the last thing before the  in a document. See
http://developer.yahoo.com/performance/rules.html#css_top for more info.

Cheers

Dave



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



Re: [WSG] Which is read first? Scripts or Styles?

2008-11-24 Thread Christian Snodgrass

Brett Patterson wrote:
I have no idea why, but for some reason I cannot remember which is 
read first! Are scripts or styles read first? And which is the 
recommended order to list them? Styles or Scripts first?


--
Brett P.

***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*** 
They are read in the order you list them in your HTML. However, if you 
change elements with Javascript, the CSS is still applied to the new 
stuff as well. Basically, regardless when loaded the CSS always acts on 
everything. Javascript needs to be run after any elements it might need 
to edit though.


--
Christian Snodgrass
CEO - Azure Ronin
http://www.arwebdesign.net
http://www.htmlblox.com
Phone: 859.816.7955



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



Re: [WSG] Which is read first? Scripts or Styles?

2008-11-24 Thread David Dorward
Brett Patterson wrote:
> I have no idea why, but for some reason I cannot remember which is read
> first! Are scripts or styles read first? And which is the recommended
> order to list them? Styles or Scripts first?

They are read in whatever ever the browser reaches them.

Scripts pause parsing of HTML (except when they are deferred, and the
browser supports that feature) while styling generally doesn't.


-- 
David Dorward   


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



[WSG] Which is read first? Scripts or Styles?

2008-11-24 Thread Brett Patterson
I have no idea why, but for some reason I cannot remember which is read
first! Are scripts or styles read first? And which is the recommended order
to list them? Styles or Scripts first?

-- 
Brett P.


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