-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unintented impact of enabling SoftNavigations to existing PerformanceObservers #11
Comments
I got a CL going that adds a PerformanceObserverInit dictionary member named What would be a better name? Does an init option make sense as the API shape here? |
My concern (ignoring the length!) is it's normal entries AND soft nav entries. Brainstorming here:
Some of them potentially are confusing as to include the Maybe |
FP, FCP and LCP entries that are triggered by soft navigations could confuse existing RUM scripts that may not be aware of them. See WICG/soft-navigations#11 This CL adds and opt-in option to only report these entries when the observer explicitly asks for them. Bug: 14113691 Change-Id: I6809973b88ed987f6ca08fbb9546d4a8f654c3fc
I like the |
Are you suggesting that to be "true" by default, and have folks that want to softnav data to add |
No I was suggesting But the fact you didn't grok that (and worse - read it the opposite way!) tells me that's not a good name. |
FP, FCP and LCP entries that are triggered by soft navigations could confuse existing RUM scripts that may not be aware of them. See WICG/soft-navigations#11 This CL adds and opt-in option to only report these entries when the observer explicitly asks for them. Bug: 1413691 Change-Id: I6809973b88ed987f6ca08fbb9546d4a8f654c3fc
FP, FCP and LCP entries that are triggered by soft navigations could confuse existing RUM scripts that may not be aware of them. See WICG/soft-navigations#11 This CL adds and opt-in option to only report these entries when the observer explicitly asks for them. Bug: 1413691 Change-Id: I6809973b88ed987f6ca08fbb9546d4a8f654c3fc
OK, changing the CL to |
|
Definitely more obscure.. |
FP, FCP and LCP entries that are triggered by soft navigations could confuse existing RUM scripts that may not be aware of them. See WICG/soft-navigations#11 This CL adds and opt-in option to only report these entries when the observer explicitly asks for them. Bug: 1413691 Change-Id: I6809973b88ed987f6ca08fbb9546d4a8f654c3fc
FP, FCP and LCP entries that are triggered by soft navigations could confuse existing RUM scripts that may not be aware of them. See WICG/soft-navigations#11 This CL adds and opt-in option to only report these entries when the observer explicitly asks for them. Bug: 1413691 Change-Id: I6809973b88ed987f6ca08fbb9546d4a8f654c3fc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4230572 Reviewed-by: Ian Clelland <[email protected]> Commit-Queue: Yoav Weiss <[email protected]> Cr-Commit-Position: refs/heads/main@{#1103256}
Landed the CL and an explainer PR, so closing, but feel free to reopen if more bikeshedding is required. |
FP, FCP and LCP entries that are triggered by soft navigations could confuse existing RUM scripts that may not be aware of them. See WICG/soft-navigations#11 This CL adds and opt-in option to only report these entries when the observer explicitly asks for them. Bug: 1413691 Change-Id: I6809973b88ed987f6ca08fbb9546d4a8f654c3fc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4230572 Reviewed-by: Ian Clelland <[email protected]> Commit-Queue: Yoav Weiss <[email protected]> Cr-Commit-Position: refs/heads/main@{#1103256}
FP, FCP and LCP entries that are triggered by soft navigations could confuse existing RUM scripts that may not be aware of them. See WICG/soft-navigations#11 This CL adds and opt-in option to only report these entries when the observer explicitly asks for them. Bug: 1413691 Change-Id: I6809973b88ed987f6ca08fbb9546d4a8f654c3fc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4230572 Reviewed-by: Ian Clelland <[email protected]> Commit-Queue: Yoav Weiss <[email protected]> Cr-Commit-Position: refs/heads/main@{#1103256}
FYI, I've updated the web-vitals soft navs branch in preparation for this landing in a future Chrome |
…on for softnav triggered entries, a=testonly Automatic update from web-platform-tests [soft navigations] Add PerfObserver option for softnav triggered entries FP, FCP and LCP entries that are triggered by soft navigations could confuse existing RUM scripts that may not be aware of them. See WICG/soft-navigations#11 This CL adds and opt-in option to only report these entries when the observer explicitly asks for them. Bug: 1413691 Change-Id: I6809973b88ed987f6ca08fbb9546d4a8f654c3fc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4230572 Reviewed-by: Ian Clelland <[email protected]> Commit-Queue: Yoav Weiss <[email protected]> Cr-Commit-Position: refs/heads/main@{#1103256} -- wpt-commits: 98a96d4d57acbbd607d44cbcadc50197cb93035e wpt-pr: 38418
…on for softnav triggered entries, a=testonly Automatic update from web-platform-tests [soft navigations] Add PerfObserver option for softnav triggered entries FP, FCP and LCP entries that are triggered by soft navigations could confuse existing RUM scripts that may not be aware of them. See WICG/soft-navigations#11 This CL adds and opt-in option to only report these entries when the observer explicitly asks for them. Bug: 1413691 Change-Id: I6809973b88ed987f6ca08fbb9546d4a8f654c3fc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4230572 Reviewed-by: Ian Clelland <[email protected]> Commit-Queue: Yoav Weiss <[email protected]> Cr-Commit-Position: refs/heads/main@{#1103256} -- wpt-commits: 98a96d4d57acbbd607d44cbcadc50197cb93035e wpt-pr: 38418
FP, FCP and LCP entries that are triggered by soft navigations could confuse existing RUM scripts that may not be aware of them. See WICG/soft-navigations#11 This CL adds and opt-in option to only report these entries when the observer explicitly asks for them. Bug: 1413691 Change-Id: I6809973b88ed987f6ca08fbb9546d4a8f654c3fc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4230572 Reviewed-by: Ian Clelland <[email protected]> Commit-Queue: Yoav Weiss <[email protected]> Cr-Commit-Position: refs/heads/main@{#1103256}
When SoftNavs are enabled with the Chrome flags or the upcoming Origin Trail, we will start to emit LCP and FCP entries for new pages, and also possibly new FID entries.
This might have unintended consequences for existing PerformanceObservers of these events and they may, incorrectly, process these entries as applying to the initial navigation leading to larger FCP and LCP times and incorrect FID measurements. This is especially the case for buffered events which may replay several soft nav's entries.
Should we have an opt-in to the Performance Observers to prevent these being surfaced unexpectedly and to allow the existing FCP, LCP, and FID to continue to be measured as they currently are?
The text was updated successfully, but these errors were encountered: