Title: Angular Service Worker should prefetch assets in parallel · Issue #39491 · angular/angular · GitHub
Open Graph Title: Angular Service Worker should prefetch assets in parallel · Issue #39491 · angular/angular
X Title: Angular Service Worker should prefetch assets in parallel · Issue #39491 · angular/angular
Description: 🚀 feature request Relevant Package This feature request is for @angular/service-worker. Description The Angular Service Worker currently prefetches a new version assets one by one, as mentioned in angular/packages/service-worker/worker/s...
Open Graph Description: 🚀 feature request Relevant Package This feature request is for @angular/service-worker. Description The Angular Service Worker currently prefetches a new version assets one by one, as mentioned in ...
X Description: 🚀 feature request Relevant Package This feature request is for @angular/service-worker. Description The Angular Service Worker currently prefetches a new version assets one by one, as mentioned in ...
Opengraph URL: https://github.com/angular/angular/issues/39491
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular Service Worker should prefetch assets in parallel","articleBody":"# 🚀 feature request\r\n\r\n### Relevant Package\r\n\r\nThis feature request is for @angular/service-worker.\r\n\r\n### Description\r\n\r\nThe Angular Service Worker currently prefetches a new version assets one by one, as mentioned in https://github.com/angular/angular/blob/dd0ba3f4abb5cf467e55bf660b70965ba7f2881e/packages/service-worker/worker/src/assets.ts#L510\r\n\r\n> // Cache all known resources serially. As this reduce proceeds, each Promise waits\r\n> // on the last before starting the fetch/cache operation for the next request. Any\r\n> // errors cause fall-through to the final Promise which rejects.\r\n\r\nDoing so with a medium/large application that heavily leverage code-splitting in inefficient: in our case we have ~340 assets to prefetch, for a total application size of only 3.0MB, yet upgrades a taking several minutes (sometimes above > 10 minutes) to be ready.\r\n\r\nThis leads to app upgrades being slower to propagate as they should be, as users have to stick around several minutes within the app for us to be able to switch to (or notify them about) the new version.\r\n\r\n### Describe the solution you'd like\r\n\r\nNew versions assets should be prefetched by the Service Worker in parallel. 3MB only takes a second to download on the average broadband connection thanks for h2+ parallelism, and the Angular Service Worker should leverage that.\r\n\r\n### Describe alternatives you've considered\r\n\r\nI am unused if the current behavior was designed on purpose.","author":{"url":"https://github.com/laurentgoudet","@type":"Person","name":"laurentgoudet"},"datePublished":"2020-10-29T14:24:57Z","url":"https://github.com/angular/angular/issues/39491"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:114a10b1-fb7e-b9fe-9bca-f05ec5a74797 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFC6:19E4BB:DE2218:11C678F:6B0107E9 |
| html-safe-nonce | db5137d79ba9bc45b31a46ba30c414d8515b3b8ed74562f5a6ce087ac64c807a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkM2OjE5RTRCQjpERTIyMTg6MTFDNjc4Rjo2QjAxMDdFOSIsInZpc2l0b3JfaWQiOiIxMDI2MDAzNTE3NzAzMjYwMTM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c81c1458ba389ab9377f11002d67cf0afcf6927f6e4232fdb4b3c9a9f1871c92 |
| hovercard-subject-tag | issue:732361012 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/39491/issue_layout |
| twitter:image | https://opengraph.githubassets.com/92296756ac5abe4567d23d6974ae5bc2651bb3712c256fd02e099240f385f6e2/angular/angular/issues/39491 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/92296756ac5abe4567d23d6974ae5bc2651bb3712c256fd02e099240f385f6e2/angular/angular/issues/39491 |
| og:image:alt | 🚀 feature request Relevant Package This feature request is for @angular/service-worker. Description The Angular Service Worker currently prefetches a new version assets one by one, as mentioned in ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | laurentgoudet |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width