Currently I read the values in window.performance.timing
within a window.addEventListener('load', function () {...})
function. however in safari there are values like loadEventEnd
still being set to 0
.
How to delay my call to window.performance.timing
in the best way event based until this and other values are defined?
Do an additional delay in the load event.
As long
loadEventEnd
is0
the check is repeated.You can also check
other_values()
to be very shureit is passed before you do
callToPerformanceTiming()