Skip to content

Commit 2eee806

Browse files
committed
Process all pending lazy loading intersection observations
Otherwise images outside the viewport can prevent loading of images inside the viewport, depending on DOM order.
1 parent fc559a5 commit 2eee806

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

source

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8124,13 +8124,13 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
81248124

81258125
<li><p>Let <var>posterResumptionSteps</var> be null.</p>
81268126

8127-
<p>If <var>entry</var>.<code
8127+
<li><p>If <var>entry</var>.<code
81288128
data-x="dom-IntersectionObserverEntry-isIntersecting">isIntersecting</code> is true and <var>entry</var>.<code data-x="dom-IntersectionObserverEntry-target">target</code> is a
81298129
<code>video</code> element, then set <var>posterResumptionSteps</var> to the <code>video</code>
81308130
element's <span>poster lazy load resumption steps</span>.</p></li>
81318131

81328132
<li><p>If <var>resumptionSteps</var> is null and <var>posterResumptionSteps</var> is null,
8133-
then return.</p></li>
8133+
then continue.</p></li>
81348134

81358135
<li><p><span>Stop intersection-observing a lazy loading element</span> for
81368136
<var>entry</var>.<code data-x="dom-IntersectionObserverEntry-target">target</code>.</p></li>
@@ -37727,9 +37727,9 @@ interface <dfn interface>HTMLMediaElement</dfn> : <span>HTMLElement</span> {
3772737727
<li><p>Let <var>resumptionSteps</var> be the <span>media element</span>'s <span>lazy load
3772837728
resumption steps</span>.</p></li>
3772937729

37730-
<li><p>Let <var>posterResumptionSteps</var> be null.</p>
37730+
<li><p>Let <var>posterResumptionSteps</var> be null.</p></li>
3773137731

37732-
<p>If the <span>media element</span> is a <code>video</code> element, then set
37732+
<li><p>If the <span>media element</span> is a <code>video</code> element, then set
3773337733
<var>posterResumptionSteps</var> to the <code>video</code> element's <span>poster lazy load
3773437734
resumption steps</span>.</p></li>
3773537735

0 commit comments

Comments
 (0)