WICG / view-transitions

https://drafts.csswg.org/css-view-transitions-1/
Other
811 stars 51 forks source link

Define impact of transition animations on Core Web Vitals on MPAs #57

Open khushalsagar opened 3 years ago

khushalsagar commented 3 years ago

We need to make sure that CWV metrics like Largest Contentful Paint (LCP) or First Contentful Paint (FCP) are not delayed for cross-document transitions.

Similarly the feature should be a no-op for Cumulative Layout Shift (CLS). Computing this metric should only be dependent on the start/end state, as if the browser switched to the end state directly without an animation.

First Input Delay (FID) should also not be impacted. This is good to keep in mind if we end up having to ignore input during the transition.

vmpstr commented 3 years ago

as if the browser switched to the end state directly without an animation.

it would also be recorded at the beginning of the animation, since we already know the end state.