From 15c741cae13570fa7331bcce422afc62c2c14f29 Mon Sep 17 00:00:00 2001
From: Simon Pieters
The posterloading
attribute is a lazy
+ loading attribute. Its purpose is to indicate the policy for loading the image given by the
+ poster
attribute of video
elements that are
+ outside the viewport.
When the posterloading
attribute's state is
+ changed to the Eager state, the user agent must run
+ these steps:
Let resumptionSteps be the video
element's lazy load
+ resumption steps.
If resumptionSteps is null, then return.
Set the video
's lazy load resumption steps to null.
Invoke resumptionSteps.
If the specified resource is to be used, then, when the element is created or when the poster
attribute is set, changed, or removed, the user agent must
run the following steps to determine the element's poster frame (regardless of the
@@ -33187,8 +33210,39 @@ interface HTMLVideoElement : HTMLMediaElement
credentials mode is "include
", and whose use-URL-credentials flag is set.
-
Fetch request. This must - delay the load event of the element's node document.
Let delay load event be true if the video
's lazy loading
+ attribute is in the Eager state, or if
+ scripting is disabled for the video
, and
+ false otherwise.
If the will lazy load element steps given the video
return true,
+ then:
Set the video
's lazy load resumption steps to the rest of this
+ algorithm starting with the step labeled fetch the poster image.
Start intersection-observing a lazy loading element for the
+ video
element.
Return.
Fetch the poster image: Fetch + request.
+ + + +When delay load event is true, fetching the image must delay the load + event of the element's node document until the task that is queued by the + networking task source once the resource has been fetched has been run. +
+poster
content
attribute.
+ The posterLoading
IDL attribute must
+ reflect the posterloading
content
+ attribute, limited to only known values.
The playsInline
IDL attribute must reflect
the playsinline
content attribute.
src
;
crossorigin
;
poster
;
+ posterloading
;
preload
;
autoplay
;
playsinline
;
@@ -129206,6 +129266,12 @@ interface External {
video
posterloading
+ video
+ lazy
";
+ "eager
"
preload
audio
;
From abf6d0742088ac69ddd201abd93eba6b825e080a Mon Sep 17 00:00:00 2001
From: Simon Pieters Return false.
Each img
, iframe
and video
element has associated
+
Each img
, iframe
, and video
element has associated
lazy load resumption steps, initially null.
For img
, iframe
and video
elements that
+
For img
, iframe
, and video
elements that
will lazy load, these steps are run from the
lazy load intersection observer's callback or when their lazy loading
attribute is set to the Eager state. This
@@ -33232,16 +33232,15 @@ interface HTMLVideoElement : HTMLMediaElement
Fetch the poster image: Fetch - request.
+Fetch the poster image: Fetch + request.
- - -When delay load event is true, fetching the image must delay the load - event of the element's node document until the task that is queued by the - networking task source once the resource has been fetched has been run. -
+ +When delay load event is true, fetching the image must delay the load + event of the element's node document until the task that is queued by the + networking task source once the resource has been fetched has been run. +