PerformanceTiming API used by Matomo is deprecated, use PerformanceNavigationTiming if available #17102
Labels
c: Platform
For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.
Major
Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
RFC
Indicates the issue is a request for comments where the author is looking for feedback.
Task
Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Milestone
I just noticed that the PerformanceTiming API used by Matomo is deprecated and might be one day removed from browsers or only supported for backwards compatibility ("Be aware that this feature may cease to work at any time.")
See https://developer.mozilla.org/en-US/docs/Web/API/Performance/timing
The suggested replacement is the PerformanceNavigationTiming API which should be used instead
I think
window.performance.getEntriesByType("navigation")[0].toJSON()
gives a quick overview over the data.Unfortunatly not all modern browsers support it yet, so I guess the replacement has to wait or both have to be supported at the same time.
The text was updated successfully, but these errors were encountered: