angular-docs-cn/packages/service-worker
Sonu Kapoor 2d7c95fb70 fix(service-worker): prevent SW registration strategies from affecting app stabilization (#35870)
Previously, some of the built-in ServiceWorker registration strategies,
namely `registerWithDelay:<timeout>` and `registerWhenStable:<timeout>`,
would register potentially long-running timeout, thus preventing the app
from stabilizing before the timeouts expired. This was especially
problematic for the `registerWhenStable:<timeout>` strategy, which waits
for the app to stabilize, because the strategy itself would prevent the
app from stabilizing and thus the ServiceWorker would always be
registered after the timeout.

This commit fixes this by subscribing to the registration strategy
observable outside the Angular zone, thus not affecting the app's
stabilization.

PR Close #35870
2020-03-27 10:47:44 -07:00
..
cli perf: don't create holey arrays (#32155) 2019-08-21 08:27:43 -07:00
config test: setup circular dependency tests for all entry points (#34774) 2020-01-23 11:36:40 -08:00
src fix(service-worker): prevent SW registration strategies from affecting app stabilization (#35870) 2020-03-27 10:47:44 -07:00
test fix(service-worker): by default register the SW after 30s even the app never stabilizes (#35870) 2020-03-27 10:47:44 -07:00
testing build: TypeScript 3.5 upgrade (#31615) 2019-07-25 17:05:23 -07:00
worker build: no longer run tslint from within gulp task (#35800) 2020-03-03 09:20:49 -08:00
BUILD.bazel build: provide full paths to `ts_api_guardian_test_npm_package` and `ts_api_guardian_test` (#36034) 2020-03-12 09:49:00 -07:00
PACKAGE.md docs: add package doc files (#26047) 2018-10-05 15:42:14 -07:00
index.ts fix(aio): add service worker entrypoint to aio build (#19875) 2017-10-23 19:31:42 -04:00
package.json build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
public_api.ts feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
safety-worker.js feat(service-worker): add helper script which will uninstall SW (#21863) 2018-01-30 11:43:03 -08:00