#963: ServiceWorkerAutoPreload

Visit on Github.

Opened Jun 5, 2024

こんにちは TAG-さん!

I'm requesting a TAG review of ServiceWorkerAutoPreload .

ServiceWorker fetch handlers are used for various reasons but there are many cases where developers use them with the intention of serving resources faster than the network, however in some cases ServiceWorker could be slower because of its startup. To fulfill their intention, this document proposes the introduction of “ServiceWorkerAutoPreload”, a new loading strategy for ServiceWorker. ServiceWorkerAutoPreload is a mode where the browser issues a network request (i.e. a regular request which may result in a HTTP cache hit or an actual fetch) in parallel with the ServiceWorker bootstrap, and consumes the network request result inside the fetch handler.

  • Explainer¹ (minimally containing user needs and example code): url
  • User research: it is a well-studied phenomenon that faster sites are better for users, but we have not conducted any user studies specifically on this feature.
  • Security and Privacy self-review²: url
  • GitHub repo: url
  • Primary contacts (and their relationship to the specification):
    • Shunya Shishido (@sisidovski), Google.
  • Organization/project driving the design: Chrome browser loading team.
  • External status/issue trackers for this feature (publicly visible, e.g. Chrome Status):

Further details:

Discussions

2024-06-17

Minutes

discussion on source as "explainers from googlers"

Dan: noting comment from anne on the webkit standards position...

we agree that it's too early for tag review but that we have generally good feedback on the idea and the next step is that it should be discussed in the working group