Title: installMode and large platforms · Issue #47705 · angular/angular · GitHub
Open Graph Title: installMode and large platforms · Issue #47705 · angular/angular
X Title: installMode and large platforms · Issue #47705 · angular/angular
Description: Which @angular/* package(s) are relevant/related to the feature request? service-worker Description I don't know if this would be the right place, but I'm reviewing the ngsw-config.json file. I would like to download all .js(app) files a...
Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? service-worker Description I don't know if this would be the right place, but I'm reviewing the ngsw-config.json file. I wou...
X Description: Which @angular/* package(s) are relevant/related to the feature request? service-worker Description I don't know if this would be the right place, but I'm reviewing the ngsw-config.json fil...
Opengraph URL: https://github.com/angular/angular/issues/47705
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"installMode and large platforms","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\r\n\r\nservice-worker\r\n\r\n### Description\r\n\r\nI don't know if this would be the right place, but I'm reviewing the ngsw-config.json file.\r\nI would like to download all .js(app) files as soon as the user opens the platform, as it improves performance even more when changing routes, but I'm afraid that this will interfere with requests from the frontend to the api.\r\nbecause our platform is big, it has several angular modules.\r\nWe are a Brazilian financial management platform.\r\nToday I use the following configuration:\r\n```\r\n{\r\n \"$schema\": \"./node_modules/@angular/service-worker/config/schema.json\",\r\n \"index\": \"/index.html\",\r\n \"assetGroups\": [\r\n {\r\n \"name\": \"app\",\r\n \"installMode\": \"lazy\",\r\n \"updateMode\": \"prefetch\",\r\n \"resources\": {\r\n \"files\": [\"/favicon.ico\", \"/index.html\", \"/manifest.webmanifest\", \"/*.css\", \"/*.js\"]\r\n }\r\n },\r\n {\r\n \"name\": \"assets\",\r\n \"installMode\": \"lazy\",\r\n \"updateMode\": \"prefetch\",\r\n \"resources\": {\r\n \"files\": [\"/assets/**\", \"/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)\", \"!/**/px.gif\"],\r\n \"urls\": [\"fonts.googleapis.com/**\", \"googletagmanager.com/**\", \"google-analytics.com/**\", \"player.vimeo.com/**\", \"f.vimeocdn.com/**\"]\r\n }\r\n }\r\n ]\r\n}\r\n\r\n```\r\nwould change `installMode` from `lazy` to `prefetch`\r\n\r\n### Proposed solution\r\n\r\n.\r\n\r\n### Alternatives considered\r\n\r\n.","author":{"url":"https://github.com/GlauberF","@type":"Person","name":"GlauberF"},"datePublished":"2022-10-08T13:53:03Z","url":"https://github.com/angular/angular/issues/47705"}
| 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:5146ac26-04ba-3034-b424-08f90fb178e0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D7A:1D8AA1:103917C:156506E:6B01053F |
| html-safe-nonce | 6f79443c5ec09f53d19223e5de4371b1af3c2adc1aa937d067d74bcb3215dc5d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDdBOjFEOEFBMToxMDM5MTdDOjE1NjUwNkU6NkIwMTA1M0YiLCJ2aXNpdG9yX2lkIjoiNDUzMjQ2NzAxNDg5NTIwNzc0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cddab5d0e32142e4987045f8e8d9e69f4f1b781280031d6333014f61d022f412 |
| hovercard-subject-tag | issue:1401954396 |
| 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/47705/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fcc2c48be827bb3259d105c1e4b64f4e8f774d5db8fd5ba2e40ce5406e32177b/angular/angular/issues/47705 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fcc2c48be827bb3259d105c1e4b64f4e8f774d5db8fd5ba2e40ce5406e32177b/angular/angular/issues/47705 |
| og:image:alt | Which @angular/* package(s) are relevant/related to the feature request? service-worker Description I don't know if this would be the right place, but I'm reviewing the ngsw-config.json file. I wou... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GlauberF |
| 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