Contact emails
yyana...@chromium.org, sisid...@chromium.org
https://github.com/WICG/service-worker-static-routing-api
https://github.com/w3c/ServiceWorker/pull/1701
This API allows developers to configure the routing, and allows them to offload simple things ServiceWorkers do. If the condition matches, the navigation happens without starting ServiceWorkers or executing JavaScript, which allows web pages to avoid performance penalties due to ServiceWorker interceptions.
https://github.com/w3ctag/design-reviews/issues/863
Issues addressed
ServiceWorkerStaticRouter
https://github.com/WICG/service-worker-static-routing-api?tab=readme-ov-file#origin-trial
Gecko: Positive (https://github.com/mozilla/standards-positions/issues/828)
WebKit: No signal (https://github.com/WebKit/standards-positions/issues/206) Informal positive signals at TPAC, but no official standards position.
Web developers: Positive (https://github.com/w3c/ServiceWorker/issues/1373) We see many positive signals and feedback from developers on the Github issue and other places (e.g. https://jakearchibald.com/2019/service-worker-declarative-router/#disqus_thread). Also, we have partners who participated in the OT (feedback).
Other signals:
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
Authors don’t foresee any obvious issue with WebView. WebView supports ServiceWorkers, and any existing applications would not be affected unless they opt-in to the static routing API explicitly.
The registered router rules are visible via chrome://serviceworker-internals and the DevTools application panel. The matched rule can be seen in the size field of the DevTools network panel.
Yes
Yes
#service-worker-static-router
ServiceWorkerStaticRouter
False
https://bugs.chromium.org/p/chromium/issues/detail?id=1371756
https://launch.corp.google.com/launch/4261120
The number of partners who started to use the API in their production. UKM's LCP and the partner's business metrics. UseCounter: ServiceWorkerStaticRouter_AddRoutes and ServiceWorkerStaticRouter_Evaluate
Feature will eventually be available on Web Platform mainline. The URLPattern became the standard, and currently no concerns exist.
Feature is considered as a best practice to mitigate the ServiceWorker performance issue on its cold start. Several internal/external partners have already started trying the feature during the OT, and some of them see performance improvement. They are expected to use the feature within 12 months of launch in Chrome.
We have already started the incubation process with several partners. We intend to move them forward to help them launch. By using the results as case studies, we intend to expand usage by helping libraries support the API.
Does the feature depend on any code or APIs outside the Chromium open source repository and its open-source dependencies to function?
n/a
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
Limit the size of rules.
https://github.com/WICG/service-worker-static-routing-api/issues/5
https://github.com/WICG/service-worker-static-routing-api/issues/6
If the limit is large enough to cover the relevant usages, it should not be a source of issues.
Timing Info
https://github.com/WICG/service-worker-static-routing-api/issues/19
The timing info for the API will be decided in a backward-compatible way. It should not be a source of issues.
Making subsequent subresource request uses the navigation request’s source
https://github.com/WICG/service-worker-static-routing-api/issues/7
This can be implemented as another condition, and should not break backward compatibility.
https://github.com/WICG/service-worker-static-routing-api/blob/main/final-form.md
tells conditions and sources that can be added in the future. The time condition and conditional syntaxes are not implemented yet. Also, some sources are considered to have fields. However, they should come as new conditions / sources, it should not break backward compatibility.
https://chromestatus.com/feature/5185352976826368
Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/fyvsde2ay2A/m/RH9E8hB0AgAJ Intent to Experiment: https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGMyg-abNsH2mfBw3%2BiaJgMn3SKCEzBzw0FuMudbmQ9XhkjEVg%40mail.gmail.com
Intent to Extend Experiment: https://groups.google.com/a/chromium.org/g/blink-dev/c/gTy-fpBOXDM
Intent to Ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/gTy-fpBOXDM
This intent message was generated by Chrome Platform Status.
Contact emails
yyana...@chromium.org, sisid...@chromium.org
Explainer
https://github.com/WICG/service-worker-static-routing-api
Specification
https://github.com/w3c/ServiceWorker/pull/1701
Summary
This API allows developers to configure the routing, and allows them to offload simple things ServiceWorkers do. If the condition matches, the navigation happens without starting ServiceWorkers or executing JavaScript, which allows web pages to avoid performance penalties due to ServiceWorker interceptions.
Blink component
TAG review
https://github.com/w3ctag/design-reviews/issues/863
TAG review status
Issues addressed
Chromium Trial Name
ServiceWorkerStaticRouter
Link to origin trial feedback summary
Origin Trial documentation link
https://github.com/WICG/service-worker-static-routing-api?tab=readme-ov-file#origin-trial
Risks
Interoperability and Compatibility
Gecko: Positive (https://github.com/mozilla/standards-positions/issues/828)
WebKit: No signal (https://github.com/WebKit/standards-positions/issues/206) Informal positive signals at TPAC, but no official standards position.
--
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+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAPNB-6WZdPweNTAvcG4k3kuB9EzV2AbGVme4Byxzg%2BRKganb2Q%40mail.gmail.com.
On Thu, Feb 8, 2024, 22:56 Yoshisato Yanagisawa <yyana...@chromium.org> wrote:Contact emails
yyana...@chromium.org, sisid...@chromium.org
Explainer
https://github.com/WICG/service-worker-static-routing-api
Specification
https://github.com/w3c/ServiceWorker/pull/1701
Summary
This API allows developers to configure the routing, and allows them to offload simple things ServiceWorkers do. If the condition matches, the navigation happens without starting ServiceWorkers or executing JavaScript, which allows web pages to avoid performance penalties due to ServiceWorker interceptions.
Blink component
TAG review
https://github.com/w3ctag/design-reviews/issues/863
TAG review status
Issues addressed
Chromium Trial Name
ServiceWorkerStaticRouter
Link to origin trial feedback summary
I just want to say that it's heartening to see OT feedback being taken seriously and addressed in rigorous manner.
Origin Trial documentation link
https://github.com/WICG/service-worker-static-routing-api?tab=readme-ov-file#origin-trial
Risks
Interoperability and Compatibility
Gecko: Positive (https://github.com/mozilla/standards-positions/issues/828)
WebKit: No signal (https://github.com/WebKit/standards-positions/issues/206) Informal positive signals at TPAC, but no official standards position.
It seems like the only concerns with this proposal (in TAG and elsewhere) was the status of URLPattern in the spec, but that has been since resolved. Is this your understanding as well?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAPNB-6XPVmcMvKV1_wmjG9%2B6sTZ8RabDOJK6dPk7xR20TmvrXQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAM0wra-BV90qWJ%2BGwnh9AJzpBhLd8dnqBFCivsUOuAr1-8nmUA%40mail.gmail.com.
LGTM3
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAM0wra9BfOiwVZy8wnp81M0EWyutkZ%3D%3D-VX3Zeq%2BN8KRMxVVPQ%40mail.gmail.com.