angular/packages/platform-browser/src
Alan Agius 3c0577f991 perf(platform-browser): disable styles of removed components instead of removing (#51808)
This commit changes the behaviour of `REMOVE_STYLES_ON_COMPONENT_DESTROY`.

Now, `style` nodes are disabled instead of removed from DOM. This causes the same runtime behaviour but avoids recomputations when the stylesheet is re-added when the component is re-created. https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/css/css_style_sheet.h;l=266;drc=31fb07c05718d671d96c227855bfe97af9e3fb20

NB: This changes is being done following some performance bottlenecks observed in Phanteon and their own recommendations.

Context:
http://chat/room/AAAAxKxTk40/jaP6Lj6fhmQ/jaP6Lj6fhmQ
https://crbug.com/1444522
http://b/289992821

PR Close #51808
2023-09-22 09:48:35 -07:00
..
browser refactor(platform-browser): remove #9100 todos. (#49406) 2023-06-21 11:43:45 -07:00
dom perf(platform-browser): disable styles of removed components instead of removing (#51808) 2023-09-22 09:48:35 -07:00
security refactor(platform-browser): Throw tree-shakable errors. (#49341) 2023-05-04 12:21:20 +02:00
browser.ts refactor(platform-browser): Throw tree-shakable errors. (#49341) 2023-05-04 12:21:20 +02:00
errors.ts docs: Add a doc for NG5014 (#50567) 2023-06-27 15:57:23 -07:00
hydration.ts docs: Add info about hydration caching. (#51648) 2023-09-06 15:31:36 +00:00
platform-browser.externs.js build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
platform-browser.ts feat(platform-browser): expose EventManagerPlugin in the public API. (#49969) 2023-08-29 16:40:06 +00:00
private_export.ts refactor(platform-browser): update renderer to be able to remove ServerRendererFactory2 and EmulatedEncapsulationServerRenderer2 (#49630) 2023-04-05 11:42:57 -07:00
version.ts docs: fix package name in version.ts files in different packages (#41208) 2021-05-10 10:26:34 -04:00