Skip to content

Commit

Permalink
Editorial: make lazy loading attributes consistent
Browse files Browse the repository at this point in the history
Helps with whatwg#9832.
  • Loading branch information
keithamus authored Oct 6, 2023
1 parent bbc8b07 commit 2d526af
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -7501,20 +7501,15 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute

<h4>Lazy loading attributes</h4>

<p>A <dfn>lazy loading attribute</dfn> is an <span>enumerated attribute</span>. The following
table lists the keywords and states for the attribute &mdash; the keywords in the left column map
to the states in the cell in the second column on the same row as the keyword.</p>

<p>The attribute directs the user agent to fetch a resource immediately or to defer fetching until
some conditions associated with the element are met, according to the attribute's current
state.</p>
<p>A <dfn>lazy loading attribute</dfn> is an <span>enumerated attribute</span> with the following
keywords and states:</p>

<table>
<thead>
<tr>
<th>Keyword
<th>State
<th>Description
<th>Brief description
<tbody>
<tr>
<td><dfn attr-value for="img/loading,iframe/loading"><code data-x="attr-loading-lazy">lazy</code></dfn>
Expand All @@ -7526,6 +7521,10 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<td>Used to fetch a resource immediately; the default state.
</table>

<p>The attribute directs the user agent to fetch a resource immediately or to defer fetching until
some conditions associated with the element are met, according to the attribute's current
state.</p>

<p>The attribute's <i data-x="missing value default">missing value default</i> and <i
data-x="invalid value default">invalid value default</i> are both the <span
data-x="attr-loading-eager-state">Eager</span> state.</p>
Expand Down

0 comments on commit 2d526af

Please sign in to comment.