You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library adds a click and keydown listener just as a means of reporting the "final" LCP value sooner. It does this because the underlying Largest Contentful Paint API itself will stop listening for new largest paints after user input or scrolls (see #75 to know why this library stopped listening for the scroll event).
If w3c/largest-contentful-paint#43 in the LCP spec is addressed, this library will not have to use the click and keydown listeners, and it can just rely on the underlying API to know when observation has stopped.
Right now the library allows inert clicks and keypresses (i.e. user clicks on 'loading' gif) to skew LCP scores lower. Two ideas for mitigating this:
The text was updated successfully, but these errors were encountered: