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

Ensure resource timing API contains expected data for timing. #268

Merged
merged 1 commit into from
Jan 27, 2015

Conversation

marcelduran
Copy link
Contributor

This PR covers:

  1. Use timing data for the latest entry of a given URL, just in case there are multiple entries, the last one should prevail;
  2. Use Resource Timing data only if its startTime is greater than the one provided by SPF when request was initiated.

timing[metric] = navigationStart + Math.round(value);

// Use resource timing data (RT) only if RT.startTime is later than
// the one provided by SPF when request was initiated.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a link to the Chrome bug?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@DavidCPhillips
Copy link
Contributor

LGTM. Thanks!

@nicksay
Copy link
Contributor

nicksay commented Jan 27, 2015

LGTM

marcelduran added a commit that referenced this pull request Jan 27, 2015
Ensure resource timing API contains expected data for timing.
@marcelduran marcelduran merged commit 1836f0c into youtube:master Jan 27, 2015
@nicksay nicksay added this to the SPF 21 (v2.1.2) milestone Feb 13, 2015
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.

3 participants