angular-cn/packages/service-worker
Alex Rickabaugh 3fbcde9048 fix(service-worker): send initialization signal from the application
The Service Worker contains a mechanism by which it will postMessage
itself a signal to initialize its caches. Through this mechanism,
initialization happens asynchronously while keeping the SW process
alive.

Unfortunately in Firefox, the SW does not have the ability to
postMessage itself during the activation event. This prevents the
above mechanism from working, and the SW initializes on the next
fetch event, which is often too late.

Therefore, this change has the application wait for SW changes and
tells each new SW to initialize itself. This happens in addition to
the self-signal that the SW attempts to send (as self-signaling is
more reliable). That way even on browsers such as Firefox,
initialization happens eagerly.
2017-12-01 14:21:07 -08:00
..
cli refactor: make all rollup config ES5 compatible (#20028) 2017-10-30 23:09:17 -04:00
config refactor: make all rollup config ES5 compatible (#20028) 2017-10-30 23:09:17 -04:00
src fix(service-worker): send initialization signal from the application 2017-12-01 14:21:07 -08:00
test fix(service-worker): don't crash if SW not supported 2017-12-01 14:18:16 -08:00
testing fix(service-worker): listen for messages on the right event source (#19954) 2017-10-26 16:04:59 -04:00
worker fix(service-worker): PushEvent.data has to be decoded (#19764) 2017-10-18 11:18:34 -07:00
build.sh feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
index.ts fix(aio): add service worker entrypoint to aio build (#19875) 2017-10-23 19:31:42 -04:00
package.json feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
public_api.ts feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
rollup.config.js fix(service-worker): don't crash if SW not supported 2017-12-01 14:18:16 -08:00
tsconfig-build.json build(service-worker): set skipTemplateCodegen for build (#19875) 2017-10-23 19:31:42 -04:00