Title: angular.io app gets stuck in “loading document” state, likely due to client-server version skew · Issue #28114 · angular/angular · GitHub
Open Graph Title: angular.io app gets stuck in “loading document” state, likely due to client-server version skew · Issue #28114 · angular/angular
X Title: angular.io app gets stuck in “loading document” state, likely due to client-server version skew · Issue #28114 · angular/angular
Description: On several occasions in the past I’ve observed that if I have a long running angular.io app open in a tab, and after some time I come back to this tab and try to use it for another navigation within the app, the app responds with doc vie...
Open Graph Description: On several occasions in the past I’ve observed that if I have a long running angular.io app open in a tab, and after some time I come back to this tab and try to use it for another navigation withi...
X Description: On several occasions in the past I’ve observed that if I have a long running angular.io app open in a tab, and after some time I come back to this tab and try to use it for another navigation withi...
Opengraph URL: https://github.com/angular/angular/issues/28114
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"angular.io app gets stuck in “loading document” state, likely due to client-server version skew","articleBody":"On several occasions in the past I’ve observed that if I have a long running angular.io app open in a tab, and after some time I come back to this tab and try to use it for another navigation within the app, the app responds with doc viewer progress bar indicating the document is being loaded, but it never actually loads the doc and remains in this state forever. Reloading the page resolves the issue.\r\n\r\nWhen I was looking through the Google Analytics (GA) data today, I noticed that there was a spike in errors just after the holidays:\r\n\r\n\r\n\r\n[Google Analytics report](https://analytics.google.com/analytics/web/?authuser=1#/my-reports/6kIX47hKQVWyoXNpJVIIaA/a8594346w94746691p98770826/_u.date00=20190105&_u.date01=20190112&1240-table.plotKeys=%5B%5D&1240-table.rowStart=0&1240-table.rowCount=50)\r\n\r\nNotice how the spike starts just around Jan 7 when most people got back from holidays, and relatively quickly things come back to normal within the next few days.\r\n\r\nIf we look into the error causes, you’ll see that the main root cause is failing to download certain JS chunks, mainly the “toc-module” chunk (there are some others if you go into the report and look at the long tail of errors, but they are less common).\r\n\r\nThis makes me believe that the problem I observed in the past and this error spike after holidays are related.\r\n\r\nHere is my interpretation of the events:\r\n- many people were on angular.io before holidays and visited only the home page but not any api/guide doc (the toc-module case), and others visited other pages as well and their case is captured in the long tail of errors other than “toc-module”.\r\n- these people left their app open, then came back around Jan 7 and tried to use the app for a new navigation\r\n- in the meantime we deployed many new versions of angular.io, changing the fingeprints of chunks\r\n- when the new navigation occured in the long-running app, the app (webpack module loader) tried to download the chunk for the missing code (e.g. toc-module)\r\n- the server however no longer hosted that chunk because we redeployed angular.io with new versions since then and returned 404\r\n- it’s uncommon that we fail to load code in this way, so the app just paniced and got stuck in the “loading document” state.\r\n- user had to reload the page to recover and since reloading helped, people just shrug and moved on without reporting the problem...\r\n\r\n\r\nThere are at least three problems we need to fix:\r\n- [ ] the module loading errors should not cause the app to freak out, we should either display the snack bar telling the user that there was an error and they should try to reload, or we should consider reloading the page automatically (but ensure we don’t end up in an infinite loop of reloads if a reload doesn’t cause the app to recover)\r\n- [x] look into why “toc-module” fails so frequently and consider prefetching and caching it along with the main chunk\r\n- [ ] we should somehow deal with the client-server version skew (have service-worker cache all chunks lazily, host old chunk versions, etc)\r\n\r\n---\r\n_**UPDATE(2021-09-20):**_\r\n_See https://github.com/angular/angular/issues/28114#issuecomment-923122967 for an explanation of the problem._","author":{"url":"https://github.com/IgorMinar","@type":"Person","name":"IgorMinar"},"datePublished":"2019-01-13T15:45:19Z","url":"https://github.com/angular/angular/issues/28114"}
| 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:78009b9a-f961-5f44-ab62-601cab3f5320 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF94:23CF06:14B2D33:1A81B68:6B011BC6 |
| html-safe-nonce | 3568623d0de7d90262d0050afaaf324afe3860658b08292bcea4913595909de9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjk0OjIzQ0YwNjoxNEIyRDMzOjFBODFCNjg6NkIwMTFCQzYiLCJ2aXNpdG9yX2lkIjoiNzYzMjY2ODE1MTEwNDIxNjAwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b3971d6164b41ff6a1e88c02f010d67436fb0a1b35107ae14f708a273aaa98c0 |
| hovercard-subject-tag | issue:398669944 |
| 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/28114/issue_layout |
| twitter:image | https://opengraph.githubassets.com/44f8e37c6270160c64cb9fa176d6dda0e4948c7122c0d1a56951245f3781d8dd/angular/angular/issues/28114 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/44f8e37c6270160c64cb9fa176d6dda0e4948c7122c0d1a56951245f3781d8dd/angular/angular/issues/28114 |
| og:image:alt | On several occasions in the past I’ve observed that if I have a long running angular.io app open in a tab, and after some time I come back to this tab and try to use it for another navigation withi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | IgorMinar |
| 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