-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to use performanceNavigationTiming interface for supported bro… #1035
Update to use performanceNavigationTiming interface for supported bro… #1035
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
/cc @hectorhdzg
...s/applicationinsights-analytics-js/src/JavaScriptSDK/Telemetry/PageViewPerformanceManager.ts
Show resolved
Hide resolved
var request = DateTimeUtils.GetDuration(timing.requestStart, timing.responseStart); | ||
var response = DateTimeUtils.GetDuration(timing.responseStart, timing.responseEnd); | ||
var dom = DateTimeUtils.GetDuration(timing.responseEnd, timing.loadEventEnd); | ||
if (navigationTiming || timing) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this line be removed? and replace the } else {
with an else if
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's chance that neither of these two exists, then it will do nothing. So this check needs to be kept?
…wser