This soft-navigation heuristics seem well thought-out and should cover most use-cases, but it may be hard to integrate with existing SPAs/frameworks that have their own notion of a soft navigation.
In our own SPAs, we have bespoke logic to determine whether a page transition has occurred. This is used to aggregate performance metrics, and other application-specific logging, so it's important that all of these metrics all have a consistent idea of when a page transition has occurred.
So we'd really like to be able to record LCP values (i.e. reset the LCP recorder) for each of these application-defined page transitions, without having to adopt the heuristic-based navigation events. Would it be possible to introduce an API that lets pages opt-out of these heuristics, and manually emit their own soft-navigation events instead?
This soft-navigation heuristics seem well thought-out and should cover most use-cases, but it may be hard to integrate with existing SPAs/frameworks that have their own notion of a soft navigation.
In our own SPAs, we have bespoke logic to determine whether a page transition has occurred. This is used to aggregate performance metrics, and other application-specific logging, so it's important that all of these metrics all have a consistent idea of when a page transition has occurred.
So we'd really like to be able to record LCP values (i.e. reset the LCP recorder) for each of these application-defined page transitions, without having to adopt the heuristic-based navigation events. Would it be possible to introduce an API that lets pages opt-out of these heuristics, and manually emit their own
soft-navigationevents instead?