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 looks like a repeat of #16 and I wasn't sure at first because the warning doesn't trigger for every page we collect statistics thanks to this lib.
However, I have now seen the warning in my browser. I am not sure what triggered this.
function startLoadTime() { // If the browser supports the Navigation Timing 2 and HR Time APIs, use // them, otherwise fall back to the Navigation Timing 1 API. if (window.PerformanceNavigationTiming && performance.timeOrigin) { const ntEntry = performance.getEntriesByType('navigation')[0]; return (ntEntry.startTime + performance.timeOrigin) / 1000; } else { return performance.timing.navigationStart / 1000; } }
and function requestTime() { // If the browser supports the Navigation Timing 2 and HR Time APIs, use // them, otherwise fall back to the Navigation Timing 1 API. if (window.PerformanceNavigationTiming && performance.timeOrigin) { const ntEntry = performance.getEntriesByType('navigation')[0]; return (ntEntry.startTime + performance.timeOrigin) / 1000; } else { return performance.timing.navigationStart / 1000; } }
Is this possible to update. Would you like me to create a PR for this?
Hi
This looks like a repeat of #16 and I wasn't sure at first because the warning doesn't trigger for every page we collect statistics thanks to this lib.
However, I have now seen the warning in my browser. I am not sure what triggered this.
[Edit]
Actually, I have a reproduce case:
It may be an event triggered on page unload
The text was updated successfully, but these errors were encountered: