Skip to content

Commit

Permalink
Leave it up to those invoking fetch to throttle https://www.w3.org/Bu…
Browse files Browse the repository at this point in the history
…gs/Public/show_bug.cgi?id=26759

(Was mainly in place for XMLHttpRequest’s progress events, but would
end up delaying everything else.)
  • Loading branch information
annevk committed Sep 26, 2014
1 parent 0c96b1e commit d7e357d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
34 changes: 17 additions & 17 deletions Overview.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<!DOCTYPE html><html lang="en-US"><meta charset="utf-8">
<title>Fetch Standard</title>
<link href="//www.whatwg.org/style/specification" rel="stylesheet">
<link href="//whatwg.org/style/specification" rel="stylesheet">
<link href="//resources.whatwg.org/logo-fetch.svg" rel="icon">

<div class="head">

<p><a class="logo" href="//www.whatwg.org/"><img alt="WHATWG" height="100" src="//resources.whatwg.org/logo-fetch.svg" width="100"></a>
<p><a class="logo" href="//whatwg.org/"><img alt="WHATWG" height="100" src="//resources.whatwg.org/logo-fetch.svg" width="100"></a>
<h1 id="cors">Fetch</h1>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-24-september-2014">Living Standard — Last Updated 24 September 2014</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-26-september-2014">Living Standard — Last Updated 26 September 2014</h2>

<dl>
<dt>This Version:
<dd><a href="//fetch.spec.whatwg.org/">https://fetch.spec.whatwg.org/</a>

<dt>Participate:
<dd>Send feedback to <a href="//www.whatwg.org/mailing-list">whatwg@whatwg.org</a> or
<dd>Send feedback to <a href="//whatwg.org/mailing-list">whatwg@whatwg.org</a> or
<a href="https://www.w3.org/Bugs/Public/enter_bug.cgi?product=WHATWG&amp;component=Fetch">file a bug</a>
(<a href="https://www.w3.org/Bugs/Public/buglist.cgi?product=WHATWG&amp;component=Fetch&amp;resolution=---">open bugs</a>)
<dd>Temporary: ServiceWorker <a href="https://github.com/slightlyoff/ServiceWorker/labels/fetch">issues labeled "fetch"</a>
Expand All @@ -34,7 +34,7 @@ <h2 class="no-num no-toc" id="living-standard-—-last-updated-24-september-2014
<p class="copyright"><a href="//creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" src="//i.creativecommons.org/p/zero/1.0/80x15.png"></a>
To the extent possible under law, the editor has waived all copyright and
related or neighboring rights to this work. In addition, as of
24 September 2014, the editor has made this specification available
26 September 2014, the editor has made this specification available
under the
<a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
which is available at
Expand Down Expand Up @@ -1234,9 +1234,9 @@ <h2 id="fetching"><span class="secno">4 </span>Fetching</h2>
<a href="#concept-response-body" title="concept-response-body">body</a> is non-null, run these substeps:

<ol>
<li><p>Every 50ms or whenever <var title="">response</var>'s
<a href="#concept-response-body" title="concept-response-body">body</a>'s is pushed to, whichever is
<em>least</em> frequent and as long as <var title="">response</var> has no
<li><p>Whenever <var title="">response</var>'s
<a href="#concept-response-body" title="concept-response-body">body</a>'s is pushed to, for and as long as
<var title="">response</var> has no
<a href="#concept-response-termination-reason" title="concept-response-termination-reason">termination reason</a> and
end-of-file has not been pushed,
<a class="external" href="https://html.spec.whatwg.org/multipage/webappapis.html#queue-a-task" title="queue a task">queue</a> a
Expand Down Expand Up @@ -1811,15 +1811,15 @@ <h3 id="http-network-or-cache-fetch"><span class="secno">4.3 </span>HTTP network
<!-- XXX xref payload body -->

<li>
<p><a class="external" href="https://html.spec.whatwg.org/multipage/webappapis.html#queue-a-task" title="queue a task">queue</a> a
<a class="external" href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-task" title="concept-task">task</a> every 50ms or for each byte
of <var title="">HTTPRequest</var>'s <a href="#concept-request-body" title="concept-request-body">body</a>
transmitted, whichever is <em>least</em> frequent, to increase
<var title="">HTTPRequest</var>'s <a href="#concept-request-body" title="concept-request-body">body</a>'s
<p>Whenever <var title="">HTTPRequest</var>'s
<a href="#concept-request-body" title="concept-request-body">body</a> is read from (i.e. is transmitted),
increase <var title="">HTTPRequest</var>'s <a href="#concept-request-body" title="concept-request-body">body</a>'s
<a href="#concept-body-transmitted" title="concept-body-transmitted">transmitted</a> with the amount of
payload body bytes transmitted and <dfn id="process-request-body">process request body</dfn> for
<var title="">HTTPRequest</var>.
<!-- XXX xref payload body -->
payload body bytes transmitted and then
<a class="external" href="https://html.spec.whatwg.org/multipage/webappapis.html#queue-a-task" title="queue a task">queue</a> a
<a class="external" href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-task" title="concept-task">task</a> to
<dfn id="process-request-body">process request body</dfn> for <var title="">HTTPRequest</var>.
<!-- XXX xref "read", "payload body" -->

<p>Use the <a class="external" href="https://html.spec.whatwg.org/multipage/webappapis.html#networking-task-source">networking task source</a>.
</ol>
Expand Down Expand Up @@ -3365,4 +3365,4 @@ <h2 class="no-num" id="acknowledgments">Acknowledgments</h2>

for being awesome.

<script id="head" src="//www.whatwg.org/specs/web-apps/current-work/dfn.js"></script>
<script id="head" src="//resources.whatwg.org/dfn.js"></script>
30 changes: 15 additions & 15 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<html lang=en-US>
<meta charset=utf-8>
<title>Fetch Standard</title>
<link rel=stylesheet href=//www.whatwg.org/style/specification>
<link rel=stylesheet href=//whatwg.org/style/specification>
<link rel=icon href=//resources.whatwg.org/logo-fetch.svg>

<div class=head>

<p><a class=logo href=//www.whatwg.org/><img alt=WHATWG src=//resources.whatwg.org/logo-fetch.svg width=100 height=100></a>
<p><a class=logo href=//whatwg.org/><img alt=WHATWG src=//resources.whatwg.org/logo-fetch.svg width=100 height=100></a>
<h1 id=cors>Fetch</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated [DATE: 3 August 2002]</h2>

Expand All @@ -16,7 +16,7 @@ <h2 class="no-num no-toc">Living Standard &mdash; Last Updated [DATE: 3 August 2
<dd><a href=//fetch.spec.whatwg.org/>https://fetch.spec.whatwg.org/</a>

<dt>Participate:
<dd>Send feedback to <a href="//www.whatwg.org/mailing-list">whatwg@whatwg.org</a> or
<dd>Send feedback to <a href="//whatwg.org/mailing-list">whatwg@whatwg.org</a> or
<a href="https://www.w3.org/Bugs/Public/enter_bug.cgi?product=WHATWG&amp;component=Fetch">file a bug</a>
(<a href="https://www.w3.org/Bugs/Public/buglist.cgi?product=WHATWG&amp;component=Fetch&amp;resolution=---">open bugs</a>)
<dd>Temporary: ServiceWorker <a href="https://github.com/slightlyoff/ServiceWorker/labels/fetch">issues labeled "fetch"</a>
Expand Down Expand Up @@ -1190,9 +1190,9 @@ <h2>Fetching</h2>
<span title=concept-response-body>body</span> is non-null, run these substeps:

<ol>
<li><p>Every 50ms or whenever <var title>response</var>'s
<span title=concept-response-body>body</span>'s is pushed to, whichever is
<em>least</em> frequent and as long as <var title>response</var> has no
<li><p>Whenever <var title>response</var>'s
<span title=concept-response-body>body</span>'s is pushed to, for and as long as
<var title>response</var> has no
<span title=concept-response-termination-reason>termination reason</span> and
end-of-file has not been pushed,
<span data-anolis-spec=html title="queue a task">queue</span> a
Expand Down Expand Up @@ -1767,15 +1767,15 @@ <h3>HTTP network or cache fetch</h3>
<!-- XXX xref payload body -->

<li>
<p><span data-anolis-spec=html title="queue a task">queue</span> a
<span data-anolis-spec=html title=concept-task>task</span> every 50ms or for each byte
of <var title>HTTPRequest</var>'s <span title=concept-request-body>body</span>
transmitted, whichever is <em>least</em> frequent, to increase
<var title>HTTPRequest</var>'s <span title=concept-request-body>body</span>'s
<p>Whenever <var title>HTTPRequest</var>'s
<span title=concept-request-body>body</span> is read from (i.e. is transmitted),
increase <var title>HTTPRequest</var>'s <span title=concept-request-body>body</span>'s
<span title=concept-body-transmitted>transmitted</span> with the amount of
payload body bytes transmitted and <dfn>process request body</dfn> for
<var title>HTTPRequest</var>.
<!-- XXX xref payload body -->
payload body bytes transmitted and then
<span data-anolis-spec=html title="queue a task">queue</span> a
<span data-anolis-spec=html title=concept-task>task</span> to
<dfn>process request body</dfn> for <var title>HTTPRequest</var>.
<!-- XXX xref "read", "payload body" -->

<p>Use the <span data-anolis-spec=html>networking task source</span>.
</ol>
Expand Down Expand Up @@ -3263,4 +3263,4 @@ <h2 class=no-num>Acknowledgments</h2>

for being awesome.

<script id=head src=//www.whatwg.org/specs/web-apps/current-work/dfn.js></script>
<script id=head src=//resources.whatwg.org/dfn.js></script>

0 comments on commit d7e357d

Please sign in to comment.