Skip to content

Commit 5e7d606

Browse files
committed
Disentangle images loading on-demand from scripting
Closes #5445, and aligns with implementations.
1 parent 65f39c6 commit 5e7d606

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

source

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27277,18 +27277,9 @@ was an English &lt;a href="/wiki/Music_hall">music hall&lt;/a> singer, ...</code
2727727277

2727827278
<h6>When to obtain images</h6>
2727927279

27280-
<p>For <code>img</code> elements whose <span>relevant settings object</span> has <span
27281-
data-x="concept-environment-noscript">scripting disabled</span>, user agents may obtain the image
27282-
immediately or on demand. For <code>img</code> elements whose <span>relevant settings
27283-
object</span> has <span data-x="concept-environment-script">scripting enabled</span>, user agents
27284-
must obtain the image immediately.</p>
27285-
27286-
<p class="note">These requirements are phrased in terms of <span
27287-
data-x="concept-environment-script">scripting being enabled</span> for the <span>relevant settings
27288-
object</span>, instead of in terms of <span data-x="concept-n-script">scripting being
27289-
enabled</span> for the <code>img</code> element itself, because it is important that images be
27290-
obtained immediately even when their <span>node document</span>'s <span
27291-
data-x="concept-document-bc">browsing context</span> is null.</p>
27280+
<p>By default, images are obtained immediately. User agents may provide users with the option to
27281+
instead obtain them on-demand. (The on-demand option might be used by bandwidth-constrained users,
27282+
for example.)</p>
2729227283

2729327284
<p>When obtaining images immediately, the user agent must synchronously <span>update the image
2729427285
data</span> of the <code>img</code> element, with the <i>restart animation</i> flag set if so

0 commit comments

Comments
 (0)