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
web-vitals-reporter uses onHidden utility from web-vitals to detect the end of the session, which relies on a visibilitychange event.
Safari doesn't fire visibilitychange on the page close or refresh (similar issue).
It's possible to use pagehide event, but it fires before visibilitychange in Chromium/Firefox, and there's a potential of losing LCP/CLS values, which depends on onHidden.
@philipwalton, what do you think about this? Is it possible to detect proper support of visibilitychange and fallback to pagehide if not?
The text was updated successfully, but these errors were encountered:
web-vitals-reporter
usesonHidden
utility fromweb-vitals
to detect the end of the session, which relies on avisibilitychange
event.Safari doesn't fire
visibilitychange
on the page close or refresh (similar issue).It's possible to use
pagehide
event, but it fires beforevisibilitychange
in Chromium/Firefox, and there's a potential of losing LCP/CLS values, which depends ononHidden
.@philipwalton, what do you think about this? Is it possible to detect proper support of
visibilitychange
and fallback topagehide
if not?The text was updated successfully, but these errors were encountered: