Skip to content

Clarify addition of PerformanceResourceTiming #146

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

Merged
merged 3 commits into from
Mar 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ <h3>Extensions to the <code>Performance</code> Interface</h3>
attribute EventHandler onresourcetimingbufferfull;
};</pre>
<p>The <dfn>Performance</dfn> interface is defined in
[[!PERFORMANCE-TIMELINE-2]].</p>
[[!HR-TIME-2]].</p>
<p>The method <dfn>clearResourceTimings</dfn> runs the following
steps:</p>
<ol>
Expand All @@ -825,7 +825,9 @@ <h3>Extensions to the <code>Performance</code> Interface</h3>
<a data-cite=
'!PERFORMANCE-TIMELINE-2/#dfn-performance-entry-buffer'>performance
entry buffer</a>.</li>
<li>Set <a>resource timing buffer full flag</a> to false.</li>
<li>If the <i>maxSize</i> parameter is greater than <a>resource
timing buffer current size</a>, set <a>resource timing buffer full
flag</a> to false.</li>
</ol>
<p>The attribute <dfn>onresourcetimingbufferfull</dfn> is the event
handler for the <dfn>resourcetimingbufferfull</dfn> event described
Expand All @@ -845,14 +847,17 @@ <h3>Extensions to the <code>Performance</code> Interface</h3>
<li>Increase <a>resource timing buffer current size</a> by 1.</li>
</ol>
</li>
<li>Otherwise, if the <a>resource timing buffer full flag</a> is
false, run the following substeps:
<li>If <a>resource timing buffer current size</a> is greater than
or equal to <a>resource timing buffer size limit</a> and the
<a>resource timing buffer full flag</a> is false, run the following
substeps:
<ol style='list-style-type: lower-latin;' data-link-for=
"Performance">
<li>Set the <a>resource timing buffer full flag</a> to true.</li>
<li><a data-cite="!DOM/#concept-event-fire">Fire a simple event</a>
named <code>resourcetimingbufferfull</code> at the Document, with
its <code>bubbles</code> attribute initialized to true and with no
<li><a data-cite="!DOM/#concept-event-fire">Fire an event</a>
named <code>resourcetimingbufferfull</code> at the <a data-cite=
"!HR-TIME-2/#idl-def-performance">Performance</a> object, with its
<code>bubbles</code> attribute initialized to true and with no
default action.</li>
</ol>
</li>
Expand Down Expand Up @@ -1143,4 +1148,4 @@ <h2>Acknowledgments</h2>
William Chan for their contributions to this work.</p>
</section>
</body>
</html>
</html>