angular/packages/platform-browser/src/browser
Kristiyan Kostadinov 7e71370fe6 perf(platform-browser): avoid intermediate arrays in server transition (#43145)
The server transition initializer looks for some `style` tags and clears them based on their `ng-transition` ID. The way we currently have the logic creates a couple of intermediate arrays just so we can call `forEach` at the end.

These changes use a regular `for` loop with an `if` statement instead. This isn't a _massive_ performance improvement, but the logic does run during app initialization which is performance-sensitive and it's an easy change to make on our end.

PR Close #43145
2021-08-17 09:22:05 -07:00
..
tools perf(common): remove unused methods from DomAdapter (#41102) 2021-03-10 11:48:24 -08:00
browser_adapter.ts perf(core): minor improvements to listener instructions (#41807) 2021-04-30 14:14:00 -07:00
generic_browser_adapter.ts perf(common): remove unused methods from DomAdapter (#41102) 2021-03-10 11:48:24 -08:00
meta.ts fix(platform-browser): in Meta.addTag() do not add duplicate meta tags (#42703) 2021-06-30 10:35:30 -07:00
server-transition.ts perf(platform-browser): avoid intermediate arrays in server transition (#43145) 2021-08-17 09:22:05 -07:00
testability.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
title.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
transfer_state.ts refactor(platform-browser): cast response of JSON.parse (#41020) 2021-03-01 15:48:24 -08:00
xhr.ts fix(platform-browser): configure XhrFactory to use BrowserXhr (#41313) 2021-03-29 15:14:16 -07:00