Skip to content

Commit

Permalink
[render-blocking] Fix implicitly-render-blocking definition.
Browse files Browse the repository at this point in the history
As per discussion in #10145.
  • Loading branch information
emilio committed Mar 20, 2024
1 parent cf95931 commit 46598a0
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -1838,6 +1838,9 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><p>If <var>removedNode</var>'s <code data-x="attr-popover">popover</code> attribute is not in
the <span data-x="attr-popover-none-state">no popover state</span>, then run the <span>hide
popover algorithm</span> given <var>removedNode</var>, false, false, and false.</p></li>

<li><p>Set <var>removedNode</var>'s <span>[[ImplicitlyPotentiallyRenderBlocking]]</span> internal
slot value to false.</p></li>
</ol>

<p>A <dfn id="insert-an-element-into-a-document" data-x="node is inserted into a document"
Expand Down Expand Up @@ -7763,10 +7766,15 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
data-x="possible blocking token">possible blocking tokens</span>.</p>
</ol>

<p>Elements have an <dfn>[[ImplicitlyPotentiallyRenderBlocking]]</dfn> slot, initially false.
Individual elements might set this slot to true.</p>

<p>An element is <dfn>explicitly potentially render-blocking</dfn> </p>

<p>An element is <dfn>potentially render-blocking</dfn> if its <span>blocking tokens set</span>
contains "<code data-x="blocking-token-render">render</code>", or if it is
<dfn>implicitly potentially render-blocking</dfn>, which will be defined at the individual
elements. By default, an element is not <span>implicitly potentially render-blocking</span>.</p>
<dfn>implicitly potentially render-blocking</dfn>. Elements are not <span>implicitly potentially
render-blocking</span> by default.</p>

<h4>Fetch priority attributes</h4>

Expand Down Expand Up @@ -17592,8 +17600,12 @@ console.log(style.disabled); // false</code></pre>
<p>The <span>child text content</span> of a <code>style</code> element must be that of a
<span>conformant style sheet</span>.</p>

<p>A <code>style</code> element is <span>implicitly potentially render-blocking</span> if the
element was created by its <span>node document</span>'s parser.</p>
<p>A <code>style</code> element on creation sets its
<span>[[ImplicitlyPotentiallyRenderBlocking]]</span> slot to true if the element was created by
its <span>node document</span>'s parser.</p>

<p>A <code>style</code> element is <span>implicitly potentially render-blocking</span> if its
<span>[[ImplicitlyPotentiallyRenderBlocking]]</span> slot is true.</p>

<hr>

Expand Down Expand Up @@ -27728,8 +27740,12 @@ document.body.appendChild(wbr);</code></pre>
<p>The default type for resources given by the <code data-x="rel-stylesheet">stylesheet</code>
keyword is <code>text/css</code>.</p>

<p>A <code>link</code> element of this type is <span>implicitly potentially render-blocking</span>
if the element was created by its <span>node document</span>'s parser.</p>
<p>A <code>link</code> element on creation sets its
<span>[[ImplicitlyPotentiallyRenderBlocking]]</span> slot to true if the element was created by
its <span>node document</span>'s parser.</p>

<p>A <code>link</code> element is <span>implicitly potentially render-blocking</span> if its
<span>[[ImplicitlyPotentiallyRenderBlocking]]</span> slot is true.</p>

<div w-nodev>

Expand Down Expand Up @@ -62237,11 +62253,16 @@ o............A....e

<hr>

<p>A <code>script</code> element on creation sets its
<span>[[ImplicitlyPotentiallyRenderBlocking]]</span> slot to true if the element was created by
its <span>node document</span>'s parser.</p>

<p>A <code>script</code> element <var>el</var> is <span>implicitly potentially
render-blocking</span> if <var>el</var>'s <span data-x="concept-script-type">type</span> is
"<code data-x="">classic</code>", <var>el</var> is <span>parser-inserted</span>, and
<var>el</var> does not have an <code data-x="attr-script-async">async</code> or <code
data-x="attr-script-defer">defer</code> attribute.</p>
render-blocking</span> if <var>el</var>'s <span>[[ImplicitlyPotentiallyRenderBlocking]]</span>
slot is true, <var>el</var>'s <span data-x="concept-script-type">type</span> is
"<code data-x="">classic</code>", and <var>el</var> does not have an
<code data-x="attr-script-async">async</code> or <code data-x="attr-script-defer">defer</code>
attribute.</p>

<p>The <span data-x="concept-node-clone-ext">cloning steps</span> for a <code>script</code>
element <var>el</var> being cloned to a copy <var>copy</var> are to set <var>copy</var>'s
Expand Down

0 comments on commit 46598a0

Please sign in to comment.