-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
Description
This approach for lazy loading videos is close to perfect.
<video preload="none" src="video.mp4" poster="videoposter.jpg" type="video/mp4">In a video gallery with many videos, using preload="none" can help speed up page loading with its lazy loading capability. The one missing feature is lazy loading the poster attribute image.
I realize loading="lazy" only works for iframe and img elements, but this one enhancement to the lazy loading capabilities would potentially be a noticeable performance improvement in addition to not preloading the videos.
vincentbernat, kevinfarrugia, timmywil, nhoizey, johannesodland and 15 more