Closed nicjansma closed 6 years ago
Found out about timeOrigin
in https://www.w3.org/TR/hr-time-2/#the-performance-interface today!
Maybe if the spec simply had a friendly pointer for people using performance.timing.navigationStart
to performance.timeOrigin
.
Kind of related to https://github.com/w3c/navigation-timing/issues/43
This is a minor issue, but in the latest spec, under section 7. Obsolete, we have the old
performance.timing
interface:https://www.w3.org/TR/navigation-timing-2/#obsolete
My concern here is that while I don't think we're suggesting any browser should remove this interface (due to web compat),
performance.timing.navigationStart
is the only way of getting the time origin. You can't useperformance.getEntriesByType('navigation')[0].startTime
as that is always0
.So I'm worried that devs might find it confusing to have
performance.timing.navigationStart
under the Obsolete section (with the ... strongly advised... text), as there's no alternate way of getting the time-origin from any other interface.@igrigorik I kind of like how you had labeled the section Historical instead of Obsolete before: https://github.com/w3c/navigation-timing/issues/43#issuecomment-248274528, which might better communicate we don't have any (current) plans to remove the interface in a future spec.
Or, we could simply add a clause in the Obsolete paragraph like:
or something