Skip to content

Commit 05f690e

Browse files
author
Ben Greenstein
committed
Merge branch 'lazyloading' of github.com:bengreenstein/html into lazyloading
2 parents d5c5acc + 6376625 commit 05f690e

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

source

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27330,32 +27330,33 @@ was an English &lt;a href="/wiki/Music_hall">music hall&lt;/a> singer, ...</code
2733027330
<p>If the <code>img</code> element's <code data-x="attr-img-lazyload">lazyload</code> attribute is
2733127331
not in the <span data-x="attr-lazyload-off-state">Off</span> state, the user agent may immediately
2733227332
fetch metadata from the image header. To fetch image metadata, the user agent must run the
27333-
following steps:
27333+
following steps:</p>
2733427334

2733527335
<ol>
27336-
<li><p>Let <var>request</var> be the result of <span data-x="create a potential-CORS request">
27337-
creating a potential-CORS request</span> given <var>urlString</var>, "<code
27338-
data-x="">image</code>", and the current state of the element's <code
27339-
data-x="attr-img-crossorigin">crossorigin</code> content attribute.</p></li>
27336+
<li><p>Let <var>request</var> be the result of <span data-x="create a potential-CORS
27337+
request">creating a potential-CORS request</span> given <var>urlString</var>, "<code
27338+
data-x="">image</code>", and the current state of the element's <code
27339+
data-x="attr-img-crossorigin">crossorigin</code> content attribute.</p></li>
2734027340

27341-
<li><p>Set <var>request</var>'s <span data-x="concept-request-client">client</span> to the
27342-
element's <span>node document</span>'s <code>Window</code> object's <span>environment settings
27343-
object</span>.</p></li>
27341+
<li><p>Set <var>request</var>'s <span data-x="concept-request-client">client</span> to the
27342+
element's <span>node document</span>'s <code>Window</code> object's <span>environment settings
27343+
object</span>.</p></li>
2734427344

27345-
<li><p>If the element <span data-x="use srcset or picture">uses <code>srcset</code> or <code>
27346-
picture</code></span>, set <var>request</var>'s <span data-x="concept-request-initiator">
27347-
initiator</span> to "<code data-x="">imageset</code>".</p></li>
27345+
<li><p>If the element <span data-x="use srcset or picture">uses <code>srcset</code> or
27346+
<code>picture</code></span>, set <var>request</var>'s <span
27347+
data-x="concept-request-initiator">initiator</span> to "<code
27348+
data-x="">imageset</code>".</p></li>
2734827349

27349-
<li><p>Set <var>request</var>'s <span data-x="concept-request-referrer-policy">referrer
27350-
policy</span> to the current state of the element's <code
27351-
data-x="attr-img-referrerpolicy">referrerpolicy</code> attribute.</p></li>
27350+
<li><p>Set <var>request</var>'s <span data-x="concept-request-referrer-policy">referrer
27351+
policy</span> to the current state of the element's <code
27352+
data-x="attr-img-referrerpolicy">referrerpolicy</code> attribute.</p></li>
2735227353

27353-
<li><p>Then <span data-x="concept-request-add-range-header">add a range header</span> to
27354-
<var>request</var> starting at byte 0 and ending with as many bytes of the image file as the
27355-
user agent determines is reasonable to retrieve metatdata.</p></li>
27354+
<li><p>Then <span data-x="concept-request-add-range-header">add a range header</span> to
27355+
<var>request</var> starting at byte 0 and ending with as many bytes of the image file as the
27356+
user agent determines is reasonable to retrieve metatdata.</p></li>
2735627357

27357-
<li><p><span data-x="concept-fetch">Fetch</span> <var>request</var>, and use the metadata
27358-
contained in the response as appropriate for the image.</p></li>
27358+
<li><p><span data-x="concept-fetch">Fetch</span> <var>request</var>, and use the metadata
27359+
contained in the response as appropriate for the image.</p></li>
2735927360
</ol>
2736027361

2736127362

0 commit comments

Comments
 (0)