Fighting with YouTube to show a preview image
TLDR: Click here for code to implement a lightweight, resilient clickable YouTube preview. YouTube videos are expensive to load on a web page. This compounds if you want your page to display many videos at the same time for the user to choose from. Before the user even plays the video, it loads 4MB onto your previously zippy page. Of course, YouTube does a decent job of caching these resources, but your browser is still doing all this work, creating another complete page context per video, exe