Skip to content
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

Merged
merged 2 commits into from
Sep 5, 2019

Conversation

xiao-lix
Copy link
Contributor

@xiao-lix xiao-lix commented Sep 4, 2019

…wser

markwolff
markwolff previously approved these changes Sep 4, 2019
Copy link
Contributor

@markwolff markwolff left a 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

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) {
Copy link
Contributor

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

Copy link
Contributor Author

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?

@markwolff markwolff self-requested a review September 4, 2019 20:58
@markwolff markwolff dismissed their stale review September 4, 2019 20:59

added comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants