Title: Preload all js bundles required for a specific route · Issue #26484 · angular/angular-cli · GitHub
Open Graph Title: Preload all js bundles required for a specific route · Issue #26484 · angular/angular-cli
X Title: Preload all js bundles required for a specific route · Issue #26484 · angular/angular-cli
Description: Which @angular/* package(s) are relevant/related to the feature request? platform-server Description When loading a route, the browser downloads the HTML file, then the main.js file, and only after that it loads other files that are requ...
Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? platform-server Description When loading a route, the browser downloads the HTML file, then the main.js file, and only after...
X Description: Which @angular/* package(s) are relevant/related to the feature request? platform-server Description When loading a route, the browser downloads the HTML file, then the main.js file, and only after...
Opengraph URL: https://github.com/angular/angular-cli/issues/26484
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Preload all js bundles required for a specific route","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\n\nplatform-server\n\n### Description\n\nWhen loading a route, the browser downloads the HTML file, then the main.js file, and only after that it loads other files that are required by the main js file, for example, a component that is lazy loaded using `loadComponent` in the router.\n\n### Proposed solution\n\nI think there is an opportunity to use the fact that SSR already had to render the page, so should know which bundles are required for this route. If the bundles can be identified, then they could be preloaded (https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload) so that the browser can download all of the js files that are required to render the page at the same.\n\n### Alternatives considered\n\nN/A","author":{"url":"https://github.com/nathan-nusign","@type":"Person","name":"nathan-nusign"},"datePublished":"2023-11-17T17:55:00Z","url":"https://github.com/angular/angular-cli/issues/26484"}
| 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:b68c76bc-ede9-fe0f-de0a-168bf1269d68 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90DE:6365:2EA0E41:3E3C657:6B01E019 |
| html-safe-nonce | 366a5123ecad482314fb6d4ddece9995f9f2c7b979a65741fc84d7f701fc612d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MERFOjYzNjU6MkVBMEU0MTozRTNDNjU3OjZCMDFFMDE5IiwidmlzaXRvcl9pZCI6IjI2NzIwMjY4MTkyMjI0ODcyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 405457bb00a6c5201a0438fa7edcada6c7e8417deb0e42a62d2348d574c33f4d |
| hovercard-subject-tag | issue:2009567373 |
| 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-cli/26484/issue_layout |
| twitter:image | https://opengraph.githubassets.com/41a4c99dc52ada4e69d75a623202df5c9fe2d06b80a3efa570aaf3a354e8fc0a/angular/angular-cli/issues/26484 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/41a4c99dc52ada4e69d75a623202df5c9fe2d06b80a3efa570aaf3a354e8fc0a/angular/angular-cli/issues/26484 |
| og:image:alt | Which @angular/* package(s) are relevant/related to the feature request? platform-server Description When loading a route, the browser downloads the HTML file, then the main.js file, and only after... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nathan-nusign |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width