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
I'm guessing that you'd prefer that duration was nulllable, and null in that case. Is that correct? As it's an interface and not a dictionary, I don't think we can omit it.
We also set it to 0 currently, if the value in the header cannot be parsed as a float; DOMHighResTimeStamp doesn't have any error-signalling values that we can use. In an error case, is it better to continue to return 0, or to return null in that case as well?
Yeh, duration being nullable would work for our use case.
I'll have a think about the invalid value case and I'm not sure on the answer ATM. I think null would be my preference but will ask the rest of the team
The PerformanceServerTiming entry always has a duration field even if the original Server-Timing header did not
For example, if the response contains this header
Then the corresponding entry will be:
This makes is impossible to know just from the API whether the header had no duration, or whether it had a duration and it was 0
The text was updated successfully, but these errors were encountered: