Re: [webkit-dev] Proposal: Link http header support

2010-06-03 Thread 蓋文彼德斯
David's right, Mozilla has it.

https://developer.mozilla.org/en/link_prefetching_faq

They support it for rel=next and rel=prefetch.  Unfortunate, as I also think
rel=subresource matters, and should be distinguished from prefetch for
prioritization.

- Gavin

On Thu, Jun 3, 2010 at 4:15 PM, David Hyatt  wrote:

> Really? I thought they did, at least for stylesheets.
>
> dave
>
> On Jun 3, 2010, at 8:14 AM, Gavin Peters (蓋文彼德斯) wrote:
>
> No, no other browsers support it.  There's a similar feature in Mozilla,
> the LINK rel=prefetch item, but to my knowledge, Mozilla does not support
> the Link header.
>
> On Wed, Jun 2, 2010 at 8:41 PM, Peter Kasting  wrote:
>
>> On Wed, Jun 2, 2010 at 3:28 PM, Gavin Peters (蓋文彼德斯) > > wrote:
>>
>>> I'm starting hacking at adding support for the Link: http header.  This
>>> is described in RFC 2068, although not RFC 2616.  As well, there's a current
>>> internet draft describing it:
>>> http://tools.ietf.org/id/draft-nottingham-http-link-header-10.html .
>>>  This header is being discussed in the IETF HTTP WG mailing list.  Since it
>>> was in HTTP 1.1 as first published, it is reserved, and legal to use today
>>> for this purpose.
>>>
>>
>> Is this supported in any other browsers?  Do websites make use of it?
>>
>> I'm not saying you should necessarily stop if the answers are "no", but
>> it's good to know the lay of the land.
>>
>> PK
>>
>
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Proposal: Link http header support

2010-06-03 Thread David Hyatt
On Jun 2, 2010, at 5:28 PM, Gavin Peters (蓋文彼德斯) wrote:

>  I don't think I'll share much code .

Try to share as much code as you can, assuming it makes sense to do so.  We 
could always refactor common code into something like a CSSStyleSheetLoader 
class if we needed to.

dave
(hy...@apple.com)


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Proposal: Link http header support

2010-06-03 Thread David Hyatt
Really? I thought they did, at least for stylesheets.

dave

On Jun 3, 2010, at 8:14 AM, Gavin Peters (蓋文彼德斯) wrote:

> No, no other browsers support it.  There's a similar feature in Mozilla, the 
> LINK rel=prefetch item, but to my knowledge, Mozilla does not support the 
> Link header.
> 
> On Wed, Jun 2, 2010 at 8:41 PM, Peter Kasting  wrote:
> On Wed, Jun 2, 2010 at 3:28 PM, Gavin Peters (蓋文彼德斯)  
> wrote:
> I'm starting hacking at adding support for the Link: http header.  This is 
> described in RFC 2068, although not RFC 2616.  As well, there's a current 
> internet draft describing it: 
> http://tools.ietf.org/id/draft-nottingham-http-link-header-10.html .  This 
> header is being discussed in the IETF HTTP WG mailing list.  Since it was in 
> HTTP 1.1 as first published, it is reserved, and legal to use today for this 
> purpose.
> 
> Is this supported in any other browsers?  Do websites make use of it?
> 
> I'm not saying you should necessarily stop if the answers are "no", but it's 
> good to know the lay of the land.
> 
> PK 
> 
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Proposal: Link http header support

2010-06-03 Thread 蓋文彼德斯
No, no other browsers support it.  There's a similar feature in Mozilla, the
LINK rel=prefetch item, but to my knowledge, Mozilla does not support the
Link header.

On Wed, Jun 2, 2010 at 8:41 PM, Peter Kasting  wrote:

> On Wed, Jun 2, 2010 at 3:28 PM, Gavin Peters (蓋文彼德斯) 
> wrote:
>
>> I'm starting hacking at adding support for the Link: http header.  This is
>> described in RFC 2068, although not RFC 2616.  As well, there's a current
>> internet draft describing it:
>> http://tools.ietf.org/id/draft-nottingham-http-link-header-10.html .
>>  This header is being discussed in the IETF HTTP WG mailing list.  Since it
>> was in HTTP 1.1 as first published, it is reserved, and legal to use today
>> for this purpose.
>>
>
> Is this supported in any other browsers?  Do websites make use of it?
>
> I'm not saying you should necessarily stop if the answers are "no", but
> it's good to know the lay of the land.
>
> PK
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Proposal: Link http header support

2010-06-02 Thread Peter Kasting
On Wed, Jun 2, 2010 at 3:28 PM, Gavin Peters (蓋文彼德斯) wrote:

> I'm starting hacking at adding support for the Link: http header.  This is
> described in RFC 2068, although not RFC 2616.  As well, there's a current
> internet draft describing it:
> http://tools.ietf.org/id/draft-nottingham-http-link-header-10.html .  This
> header is being discussed in the IETF HTTP WG mailing list.  Since it was in
> HTTP 1.1 as first published, it is reserved, and legal to use today for this
> purpose.
>

Is this supported in any other browsers?  Do websites make use of it?

I'm not saying you should necessarily stop if the answers are "no", but it's
good to know the lay of the land.

PK
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] Proposal: Link http header support

2010-06-02 Thread 蓋文彼德斯
Hi,

I'm starting hacking at adding support for the Link: http header.  This is
described in RFC 2068, although not RFC 2616.  As well, there's a current
internet draft describing it:
http://tools.ietf.org/id/draft-nottingham-http-link-header-10.html .  This
header is being discussed in the IETF HTTP WG mailing list.  Since it was in
HTTP 1.1 as first published, it is reserved, and legal to use today for this
purpose.

The HTTP Link header should be treated nearly identically to an HTML Link
element.  This means that guidance for stylesheet, subresource & stylesheet
loading can be provided to a browser before any parse of HTML has been
started.  Possibly a win.  Right now, Leon Clarke has a patch he's landing
for the link rel=prefetch case in HTML, see
https://bugs.webkit.org/show_bug.cgi?id=3652 .  I'd like to code this up for
headers as well.

At first, I'd like to take a relatively simpleminded approach.  I don't want
to carry forward DOM implications of the HTTP header (i.e. i'll ignore an
onload attribute), and I don't think I'll share much code with
HTMLLinkElement.cpp.  However, I'm open to feedback on this.  I intend to
catch a few simple rel cases (subresource, prefetch & stylesheet) and launch
appropriately prioritized resource requests.

Any thoughts?

- Gavin
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev