Title: perf(docs-infra): various issues affecting performance of angular.io · Issue #33063 · angular/angular · GitHub
Open Graph Title: perf(docs-infra): various issues affecting performance of angular.io · Issue #33063 · angular/angular
X Title: perf(docs-infra): various issues affecting performance of angular.io · Issue #33063 · angular/angular
Description: This is a list of issues that have been found to affect performance of angular.io and need further investigation. (Capturing what we have found out so far for future reference.) NOTE 1: Most of the issues are not angular.io specific and ...
Open Graph Description: This is a list of issues that have been found to affect performance of angular.io and need further investigation. (Capturing what we have found out so far for future reference.) NOTE 1: Most of the...
X Description: This is a list of issues that have been found to affect performance of angular.io and need further investigation. (Capturing what we have found out so far for future reference.) NOTE 1: Most of the...
Opengraph URL: https://github.com/angular/angular/issues/33063
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"perf(docs-infra): various issues affecting performance of angular.io","articleBody":"This is a list of issues that have been found to affect performance of angular.io and need further investigation. (Capturing what we have found out so far for future reference.)\r\n\r\n> NOTE 1: Most of the issues are not angular.io specific and would affect all similar apps.\r\n> NOTE 2: The issues don't seems to be VE or Ivy specific.\r\n\r\nJira issue: [FW-1616][1]\r\n\r\n**Context**\r\nWhile debugging an unrelated bug in #32923 (turning on Ivy for angular.io), I noticed too many change detection runs (~250! in some cases) while navigating to `/guide/router` (a looong guide with lots of custom elements (193, 10 of which are `MatTabGroup`s)).\r\n\r\n**Problems**\r\n@pkozlowski-opensource profiled the app ([sample recording][2]) and found out it takes several seconds (~4-8s :scream:) to fully load the `/guide/router` page. The time is mostly spent in JS and forced layouts (:scream: :scream:).\r\n\r\nThe main problems seem to be the following:\r\n\r\n- [ ] _Several forced layouts during JS execution._\r\n **Source:** `MatTabGroup`/`MatTab` components (`material`), `TocComponent` (`aio/`)\r\n **Related issues:** angular/components#17317\r\n\r\n- [ ] _Several timers (as a result of scheduling macrotasks in some RxJS observable)._\r\n **Source:** `MatTab` component (`material`)\r\n\r\n- [ ] _Several change detection runs triggered in `requestAnimationFrame()` calls._\r\n **Source:** `@angular/elements` change detection (at least 1 per element _instance_ (often more due to a bug - see related issues)) (`elements`)\r\n **Related issues:** #33059, #33060\r\n\r\nfyi @pkozlowski-opensource \r\n\r\n[1]: https://angular-team.atlassian.net/browse/FW-1616\r\n[2]: https://github.com/angular/components/files/3698146/aio_mat_tab_forced_layout.json.zip\r\n\r\n\r\n[FW-1616]: https://angular-team.atlassian.net/browse/FW-1616","author":{"url":"https://github.com/gkalpak","@type":"Person","name":"gkalpak"},"datePublished":"2019-10-09T18:54:17Z","url":"https://github.com/angular/angular/issues/33063"}
| 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:b82e8b8e-3142-6fc9-f316-53045fd4ce5a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE6E:EDA7A:294A8F0:3478CAE:6B01A39D |
| html-safe-nonce | 5314a3963bed24865c9f76e55ec3817cb83ee92aa88c8e5aedf3e82997b4ccf1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTZFOkVEQTdBOjI5NEE4RjA6MzQ3OENBRTo2QjAxQTM5RCIsInZpc2l0b3JfaWQiOiI3MDUzNzQwMTU0ODM3NjQwMDkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2c7a68b25a372783cc1108ae4d0689f003facc3166c296cfcfe725c8206a9d42 |
| hovercard-subject-tag | issue:504831082 |
| 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/33063/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b4f9c6dfe5b6812a5e1dd18b4956c05a1dab34aaea0be0a8f222baa1952a82d3/angular/angular/issues/33063 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b4f9c6dfe5b6812a5e1dd18b4956c05a1dab34aaea0be0a8f222baa1952a82d3/angular/angular/issues/33063 |
| og:image:alt | This is a list of issues that have been found to affect performance of angular.io and need further investigation. (Capturing what we have found out so far for future reference.) NOTE 1: Most of the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gkalpak |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width