Open luwes opened 4 years ago
I kinda see merit in this opt-in option where the iframe is lazy loaded if it goes in the viewport.
It would improve start-up time of the video.
Could go even further and start pre-loading video segments...
Related https://github.com/paulirish/lite-youtube-embed/issues/11
<iframe loading=lazy /> is very new and not cross browser. better use in-viewport check.
<iframe loading=lazy
https://gist.github.com/davidtheclark/5515733
I kinda see merit in this opt-in option where the iframe is lazy loaded if it goes in the viewport.
It would improve start-up time of the video.
Could go even further and start pre-loading video segments...
Related https://github.com/paulirish/lite-youtube-embed/issues/11