Contact emails
ho...@chromium.org, fal...@chromium.org, kenji...@chromium.org
Spec
Navigation preload is part of Service Workers spec. The spec issue is here.
See also sample code and an demo video.
Summary
Navigation preload is an extension of the Service Worker API which lets the browser send a “preload” network request for a navigation without blocking on the fetch event handler of the relevant service worker. The service worker will then have access to the preload response inside its fetch event handler. Common use cases are to respond with the preload response directly, or use it to populate the response.
Link to “Intent to Implement” blink-dev discussion
https://groups.google.com/a/chromium.org/d/msg/Blink-dev/PI3FG54L1ZU/B4jNSzhyCAAJ
Goals for experimentation
Measure real world impact of the implementation before shipping.
Experimental timeline
I'd like to run this for two milestones, starting in M57:
M57 Stable Ships ~Mar 14th, 2017
M58 Stable Ships ~Apr 25th, 2017
And disable it at M59 branch from ToT:
M59 branches from ToT ~Apr 13th, 2017
Any risks when the experiment finishes?
Low. It’s possible to write a site that would break without the API, but this is just an optimization and it’s easy to write a site that functions when the optimization is not available, as is the case with current Chrome and other browsers. Authors should check if FetchEvent.preloadResponse is undefined (if it’s unimplemented) or resolves to null (if it’s not enabled for this service worker). If the preloadResponse is absent and a response is needed in JavaScript, authors can use fetch().
Ongoing technical constraints
None.
Will this feature be supported on all five Blink platforms supported by Origin Trials (Windows, Mac, Linux, Chrome OS, and Android)?
Yes.
OWP launch tracking bug
https://bugs.chromium.org/p/chromium/issues/detail?id=661071
Link to entry on the feature dashboard
https://www.chromestatus.com/feature/5734842339688448
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.