From 01fa4f2414bf8269c0f07672145410dc4c710bcb Mon Sep 17 00:00:00 2001 From: Tony Li Date: Mon, 24 Aug 2026 13:57:41 +1200 Subject: [PATCH 1/2] Make the Stats traffic card list lazy Building all traffic cards eagerly during the navigation push made the first open of the new Stats screen noticeably slow: the off-screen Locations card created a WKWebView (spawning a WebContent process) before it was ever visible. A lazy stack defers each card until it scrolls into view, cutting the measured tap-to-screen time on a fresh install by about a quarter. --- Modules/Sources/JetpackStats/Screens/TrafficTabView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Sources/JetpackStats/Screens/TrafficTabView.swift b/Modules/Sources/JetpackStats/Screens/TrafficTabView.swift index e9be8f120b6d..ee6483deae06 100644 --- a/Modules/Sources/JetpackStats/Screens/TrafficTabView.swift +++ b/Modules/Sources/JetpackStats/Screens/TrafficTabView.swift @@ -21,7 +21,7 @@ struct TrafficTabView: View { var body: some View { ScrollViewReader { proxy in ScrollView { - VStack(spacing: Constants.step3) { + LazyVStack(spacing: Constants.step3) { cards buttonAddChart timeZoneInfo From bcad1e4d3f3b765b8155a23650a01819128797a0 Mon Sep 17 00:00:00 2001 From: Tony Li Date: Wed, 26 Aug 2026 10:07:55 +1200 Subject: [PATCH 2/2] Add a release note --- RELEASE-NOTES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index b97f270e1236..2532da8ba574 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -1,6 +1,6 @@ 27.3 ----- - +* [*] Stats: Improve performance when opening the Stats screen [#25938] 27.2 -----