W3C home > Mailing lists > Public > www-style@w3.org > December 2000

HTTP Link headers [was: Re: <link> vs <style></style>]

From: Chris Croome <chris@webarchitects.co.uk>
Date: Tue, 19 Dec 2000 13:33:15 +0000
To: www-style@w3.org
Message-ID: <20001219133315.A8058@webarchitects.co.uk>

It's great that Mozilla will support this sometime :-)

One question, the stuff in the HTML4 spec about linking to style sheets
in HTTP headers:


was written before media types were introduced in CSS2:


So would the following work and/or be valid?

Link: </css/print.css>; rel="stylesheet"; title="Print"; media="print"


On Sun 17-Dec-2000 at 02:40:55 -0800, Peter S. Linss wrote:
> A Mozilla based browser (when HTTP Link headers get hooked up) will
> not pull the stylesheet twice in that scenario. It's smart enough to
> see the same sheet linked to the same document and re-use it without
> even attempting to re-load it, no matter where the sheet is linked,
> even @imports. That's the job of the CSSStyleSheetLoader, one of my
> favorite pieces of code in the whole system. Thank Ian's Evil Import
> Test for forcing me to write it :-)
> It WILL be linked to the document twice though, (because that's what
> you specified) so it'll have to process the style information twice
> when resolving style, probably not a noticeable slowdown unless your
> stylesheet is HUGE.
> I can't speak for other browsers...

Chris Croome <chris@webarchitects.co.uk>
work: http://www.webarchitects.co.uk/
play: http://chris.croome.net/

Received on Tuesday, 19 December 2000 08:33:07 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:56 UTC