W3C home > Mailing lists > Public > public-web-perf@w3.org > June 2013

Re: Prerender spec

From: Philippe Le Hegaret <plh@w3.org>
Date: Fri, 14 Jun 2013 12:56:34 -0400
Message-ID: <1371228994.2566.34.camel@chacal>
To: Arvind Jain <arvind@google.com>
Cc: public-web-perf <public-web-perf@w3.org>, Chris Bentzel <cbentzel@google.com>, Robin Berjon <robin@w3.org>
On Fri, 2013-06-14 at 09:23 -0700, Arvind Jain wrote:
> Hi,
> It has been on our charter to write a specification for "prerender".
> 
> 
> Please check:
> http://www.w3.org/html/wg/drafts/html/master/single-page.html#link-type-prefetch
> 
> 
> It seems logical to specify the behavior of <link rel="prerender"> in
> this document.
> 
> 
> Do folks agree? Or should there be a separate document?
> 
I guess it depends on the size and the level of buy-in. Usually, it's
preferred to do an extension spec to start with but, in this case, it
seems an overkill.

> 
> Of course, we would need the editors of the HTML5.1 spec to agree that
> this belongs in their specification.
> 
I added Robin in the loop to get his opinion.
> 
> My suggestion for the text is as follows. Any comments?
> 4.13.5.10 Link type "prerender"
> The prerender keyword may be used with a link element. This keyword
> creates an external resource link.
> 
> The prerender keyword indicates that preemptively fetching and loading
> the specified resource in a hidden top-level browsing context is
> likely to be beneficial, as it is highly likely that the user will
> navigate to this resource. If the resource is navigated to, the user
> agent may replace the current browsing context with the one it loaded
> the specified resource in. 
> 
> The user agent may discard the browsing context corresponding to the
> prerendered resource if any of the following is true:
> 
>       * If the resource is not navigated to within a reasonable amount
>         of time.
>       * If the user navigates to some other resource from the current
>         browsing context.
>       * If the link element is removed from the document.
> 
> There is no default type for resources given by the prerender keyword.
> 
Any reason why this can't be applied to a and area elements, like
prefetch?

Philippe

> 
> 
> 
Received on Friday, 14 June 2013 16:56:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:35 UTC