-
Notifications
You must be signed in to change notification settings - Fork 475
Description
In React Single page Application(SPA), First Input Delay and Largest Contentful Paint are only measured once on Initial Load. Additionally, Cumulative Layout Shift does not reset to 0 throughout the session. This means CLS could reach to very high value , if user continues to navigate though logical pages like homepage -> search -> Product Listing -> Product Page -> Basket -> Checkout and so on.
Based on current implementation, pageshow event resets CLS to 0 and it also captures FID and LCP for subsequent page loads.
In React Single Page Application, Could we consider route change event for the new logical page load and reset CLS to 0. This would also enable us to capture FID and LCP on every logical page of the application.
If Web Vital Metrics would be considered for page ranking, the proposed implementation would give React SPA fair comparison.