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.
Safari (7+), iOS (7+) and IE mobile (11) are tested on BrowserStack.
Angular
Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript and other languages.
Quickstart
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.
Description
Languages
TypeScript
68.6%
HTML
12.8%
JavaScript
8.4%
Pug
7%
Starlark
1.4%
Other
1.7%