You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We'd like to explore whether the browser could invoke the navigation commit much earlier than the regular navigation by extending the Static Routing API. The navigation commit in the renderer process is currently started only after receiving the navigation response. While waiting for the response, the renderer process is mostly idle or not created yet. However, the commit navigation takes some time to process and it can delay the renderer process going to be ready. This is not efficient.
What if the Static Routing API can store the beginning of response in its database, and use it as the part of navigation response while waiting for the network? The browser will be able to start the commit navigation right after the navigation start. The Static Routing API should use one stream as a response. The stream won't be closed after receiving the actual network response. The browser appends the actual response to the stream until all response data is processed.
Here is the slide which was used in TPAC2024, explaining this concept more visually.
Is this similar to App Shell?
This is similar to what the app shell model does. But the Synthetic Response via Static Routing API would be better in most cases, because it doesn't involve the SW bootstrap. The static routing router evaluation is happened before starting the SW, while the regular app shell depends on the fetch handler.
However, what the Synthetic Response can do should be polyfillable like below:
It would be nice to describe potential alternatives and how they compare to the proposed solution.
For instance, an approach relying on existing tools that seems fairly equivalent from a PLT perspective could be:
Use static routing to load a cache storage response (synthetic or not)
Make UA preloads/prefetches resources via Link HTTP headers of the cache storage response
AIUI, the main goal here is to ease the deployment of that kind of optimisations by having the UA implementing cache storage responses+partial updates instead of the JS of the cache storage response doing it.
Activity
yoshisatoyanagisawa commentedon Oct 16, 2025
When I first saw this, I just wondered if a developer should write a streaming JavaScript to update the part sent by the synthetic response, but https://github.com/WICG/declarative-partial-updates/blob/main/patching-explainer.md filled the part. Very Nice :)
sisidovski commentedon Mar 19, 2026
We published the explainer here https://github.com/explainers-by-googlers/service-worker-synthetic-response
yoshisatoyanagisawa commentedon Mar 19, 2026
Thanks @sisidovski for the explainer.
@jakearchibald @Snugug @youennf FYI
youennf commentedon Mar 19, 2026
It would be nice to describe potential alternatives and how they compare to the proposed solution.
For instance, an approach relying on existing tools that seems fairly equivalent from a PLT perspective could be:
AIUI, the main goal here is to ease the deployment of that kind of optimisations by having the UA implementing cache storage responses+partial updates instead of the JS of the cache storage response doing it.