pme...@chromium.org http://w3c.github.io/resource-hints/ Adds support for <link rel="preconnect" href="..."> (and the equivalent HTTP link header) as a hint that the browser should predictively open a connection to the supplied server/protocol for resources that will be needed later in the loading process. Provides a mechanism for developers to inform Chrome about connections that will be needed at some point in the near future. This will commonly be used for resources that can not be discovered by the preload scanner. Firefox: No public signals Internet Explorer: No public signals Safari: No public signals Web developers: Positive This is based on a draft spec with wide agreement and similar existing methods that are already widely used (dns-prefetch and prefetch). None Yes https://code.google.com/p/chromium/issues/detail?id=449620 https://www.chromestatus.com/features/5560623895150592 Yes
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
YesSorry to interrupt here. What do you mean by "optimistic connections,"
a term not defined in the resource hints draft? The reason I ask is
because I want to make sure it doesn't mean "any link with
rel=preconnect," but I cannot see what else it could mean.
In order for that to work, the "as" attribute would have to be required, I think.
(FWIW, I had trouble finding a description of the "as" attribute in
the draft spec.)
Ilya Grigorik <igri...@google.com> wrote:
> Looking at Fetch context > CSP directive mappings [1],
> some types of fetches (e.g. prefetch, subresource) don't have a defined CSP
> directive... I'm guessing for the very same reason since both prefetch and
> subresource can be used to fetch any type of resource?
As I mentioned in my previous message, I think it is worth considering
requiring the "as" attribute to be required for prefetch and
subresource, and that the type used in "as" is matched with the type
of fetch that makes use of the prefetch, so that prefetching works as
well as possible with CSP, referrer control, and maybe other future
mechanisms.
In other words, I believe we should try to make it the case that there
are no "prefetch" or "subresource" fetch contexts, but instead use the
"as" attribute on those links to determine the fetch context.