Bug 182852 - Feature: Navigation Preload API for Service Worker
Summary: Feature: Navigation Preload API for Service Worker
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2018-02-15 17:03 PST by Kenji Baheux
Modified: 2019-06-21 09:46 PDT (History)
6 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Kenji Baheux 2018-02-15 17:03:16 PST
Navigation Preload is an important Service Worker API allowing to offset the startup cost of Service Worker by issuing a parallel request for the main resource.
Typically, we've observed 300~400ms (1 RTT) wins on mobile with key partners (I'll try to get them to chime on this bug).

Spec: https://w3c.github.io/ServiceWorker/#service-worker-registration-navigationpreload

 - Available in Chrome 59+

 - Mozilla is supportive, tracking bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1290958)
 - Edge is supportive [1]
 - I believe that Apple was also supportive [1]

[1]: https://github.com/w3c/ServiceWorker/issues/920#issuecomment-236251448
Comment 1 Thomas Steiner 2019-05-29 11:12:28 PDT
Navigation Preload is _one_ of the necessities for the Google Search team to ship a service worker on https://www.google.com/. Latency is a major concern, and Navigation Preload was the biggest win in several of the Chrome team’s experiments. For your consideration. Thanks.
Comment 2 Thomas Steiner 2019-06-20 15:38:31 PDT
The Google Search team have just documented why they need the Navigation Preload API: https://web.dev/google-search-sw/#service-worker-overhead.
Comment 3 Radar WebKit Bug Importer 2019-06-20 17:29:29 PDT