Standard YouTube video embeds usually adds some extra weight to the page thus increasing the page load time. With this hack you can load YouTube video player on-demand and it’s responsive too.
This hack initially appeared on Labnol. If you are having trouble with the pen, try the archived copy on GitHub
See the Pen YouTube embedding by Saijo George (@SaijoGeorge) on CodePen.0