Performace API - not supported in Safari Browser

Viewed 845

I am planning to track page load time in Javascript with the help of Performance Navigation API. But , It is not supported in safari. Here is the code:

*var performance = window.performance;
var timet = performance.getEntriesByType("navigation")[0].duration;*

Receiving an error "Performance" is undefined. It seems Performace API is deprecated. Is there any alternate way to capture page load time using Javascript?

1 Answers
Related