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

Surface failed fetches in the performance timeline #19

Merged
merged 1 commit into from
Apr 29, 2015

Conversation

igrigorik
Copy link
Member

  • fetches that are blocked (CSP, CORS, etc) are omitted
  • fetches aborted due to network/other errors must be included
  • failed fetches must surface initialized attributes up to point of
    failure

Closes #12.

- fetches that are blocked (CSP, CORS, etc) are omitted
- fetches aborted due to network/other errors must be included
- failed fetches must surface initialized attributes up to point of
  failure

Closes #12.
</p>

<p>All resources <a title='fetch' href="http://www.w3.org/TR/html5/infrastructure.html#fetch">fetched</a> by the current <a href="http://www.w3.org/TR/html5/browsers.html#browsing-context">browsing</a> [[!HTML5]] or worker [[!WORKERS]] context's MUST be included as <a href="#performanceresourcetiming">PerformanceResourceTiming</a> objects in the <a href="http://www.w3.org/TR/performance-timeline/#sec-performance-timeline">Performance Timeline</a> of the relevant context. Resources that are retrieved from <a href="http://www.w3.org/TR/html5/browsers.html#relevant-application-cache" title='relevant application cache'>relevant application caches</a> or local resources MUST be included as <a href="#performanceresourcetiming">PerformanceResourceTiming</a> objects in the <a href="http://www.w3.org/TR/performance-timeline/#sec-performance-timeline">Performance Timeline</a> ([[!performance-timeline]]). Resources for which the <a title='fetch' href="http://www.w3.org/TR/html5/infrastructure.html#fetch">fetch</a> was initiated, but was later aborted (e.g. due to a network error) MUST be included as <a href="#performanceresourcetiming">PerformanceResourceTiming</a> objects in the <a href="http://www.w3.org/TR/performance-timeline/#sec-performance-timeline">Performance Timeline</a> and MUST contain initialized attribute values for processed substeps of the <a href="#processing-model">processing model</a>.</p>

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we avoid extremely long lines in the future? It makes it so much harder to review changes.

Copy link
Member

Choose a reason for hiding this comment

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

80 columns FTW!

Choose a reason for hiding this comment

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

king

@yoavweiss
Copy link
Contributor

LGTM, but interested in @mikewest's opinion as well.

@mikewest
Copy link
Member

How do you deal with redirects? That is, do you expose the endpoints to which redirection directs, or do you tie everything to the original url that the UA fetched?

@igrigorik
Copy link
Member Author

@mikewest currently, we don't expose redirection end-points (see step in 19 for full details).

That said, we do have an open discussion to change this, see: https://lists.w3.org/Archives/Public/public-web-perf/2015Feb/0059.html

@toddreifsteck
Copy link
Member

LGTM

igrigorik added a commit that referenced this pull request Apr 29, 2015
Surface failed fetches in the performance timeline
@igrigorik igrigorik merged commit 65739a2 into gh-pages Apr 29, 2015
@igrigorik
Copy link
Member Author

Re, redirects, see: #21

@igrigorik igrigorik deleted the failed-fetch branch July 20, 2015 21:06
@eligrey
Copy link
Member

eligrey commented May 4, 2020

Was Chrome ever updated to reflect this spec change?

Screen Shot 2020-05-04 at 1 02 23 PM

For comparison, here is what the Performance Timeline API returns for HTTP 404 img requests:

Screen Shot 2020-05-04 at 12 59 05 PM

@npm1
Copy link
Contributor

npm1 commented May 4, 2020

For 404 at least it was supposed to be fixed, per https://bugs.chromium.org/p/chromium/issues/detail?id=883400. Please comment on that issue if you're not seeing that fixed in a recent Chrome version.

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.

Clarify presence of requests that don't return a response
7 participants