I just today realized that of my 1.2 MB site (per GTMetrix), 550k of it is a YouTube video.
My web site is a WordPress site, and the current video loads in an iframe.
You can achieve this with two simple steps......
function init() {
var vidDefer = document.getElementsByTagName('iframe');
for (var i=0; i
Reference For more details:
https://scottdeluzio.com/defer-parsing-javascript-youtube-videos/
https://varvy.com/pagespeed/defer-videos.html
P.S. I am personally using this and it works.
Thanks Sabbir H