Title: Static attributes are not hydrated, causing refetching of external resources · Issue #52477 · angular/angular · GitHub
Open Graph Title: Static attributes are not hydrated, causing refetching of external resources · Issue #52477 · angular/angular
X Title: Static attributes are not hydrated, causing refetching of external resources · Issue #52477 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? platform-browser Is this a regression? No Description There's a hydration issue when static attributes are set again during Angular's client-side rendering. This can lead to problems...
Open Graph Description: Which @angular/* package(s) are the source of the bug? platform-browser Is this a regression? No Description There's a hydration issue when static attributes are set again during Angular's client-s...
X Description: Which @angular/* package(s) are the source of the bug? platform-browser Is this a regression? No Description There's a hydration issue when static attributes are set again during Angular's ...
Opengraph URL: https://github.com/angular/angular/issues/52477
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Static attributes are not hydrated, causing refetching of external resources","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nplatform-browser\n\n### Is this a regression?\n\nNo\n\n### Description\n\nThere's a hydration issue when static attributes are set again during Angular's client-side rendering. This can lead to problems with `src` attributes that load external resources. Browsers consider each change to the `src` attribute as a new request to load the specified resource.\r\n\r\nFor example, when the server returns `\u003ciframe src=\"...\"` pointing to a YouTube video that starts playing after the browser has rendered the content but before `bootstrapApplication` is called, an issue arises. When `bootstrapApplication` is invoked, Angular initiates its 'initialization' flow, during which it calls `setAttribute` on this `iframe` once more. Consequently, the video may flicker as the browser attempts to reload it.\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://github.com/arturovt/hydration-iframe-src-issue\n\n### Please provide the exception or error you saw\n\n_No response_\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI: 16.2.7\r\nNode: 18.13.0\r\nPackage Manager: yarn 1.22.19\r\nOS: linux x64\r\n\r\nAngular: 16.2.10\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, platform-server\r\n... router\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1602.7\r\n@angular-devkit/build-angular 16.2.7\r\n@angular-devkit/core 16.2.7\r\n@angular-devkit/schematics 16.2.7\r\n@angular/cli 16.2.7\r\n@nguniversal/builders 16.2.0\r\n@nguniversal/express-engine 16.2.0\r\n@schematics/angular 16.2.7\r\nrxjs 7.8.1\r\ntypescript 5.1.6\r\nzone.js 0.13.3\n```\n\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/arturovt","@type":"Person","name":"arturovt"},"datePublished":"2023-10-31T23:04:16Z","url":"https://github.com/angular/angular/issues/52477"}
| 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:b3f228df-bad5-da96-f0bf-711f54fcd43d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 891C:3DCD28:F2DFE7:142D788:6B01D8F3 |
| html-safe-nonce | 6f52e0d40f5cb915d58def86900c284eec46058a9d0720516c2bf3b7acd91dc1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTFDOjNEQ0QyODpGMkRGRTc6MTQyRDc4ODo2QjAxRDhGMyIsInZpc2l0b3JfaWQiOiIyNjQzMzMzMTUzMDU3NTI4MDUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 96ef6065a0614e9ddeca80fb74088114c50e11155a4c6202dd1e8748bda8dad6 |
| hovercard-subject-tag | issue:1971419291 |
| 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/52477/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d93377b6abc85f7cf6c94a0d878da1e0ae66fd48c27562b6d8e7a2b39da0a7ef/angular/angular/issues/52477 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d93377b6abc85f7cf6c94a0d878da1e0ae66fd48c27562b6d8e7a2b39da0a7ef/angular/angular/issues/52477 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? platform-browser Is this a regression? No Description There's a hydration issue when static attributes are set again during Angular's client-s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arturovt |
| 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