4 ms·
I had the same problem with the YouTube video on BugMuncher's homepage. My solution was to just put an image in place of the video and use JavaScript to embed t
by MattBearman 13y ago
I had the same problem with the YouTube video on BugMuncher's homepage. My solution was to just put an image in place of the video and use JavaScript to embed the video when the image is clicked - you can see it in action here http://bugmuncher.com http://bugmuncher.com
- superice 13y agoThat's absolutely awesome. A simple and pretty elegant solution. Your non-javascript fallback is just going to youtube.com?
- MattBearman 13y agoThanks. You are correct, the non-JavaScript fall back is just a link to the video on youtube. As well as being faster than putting the video straight into the page, I also think it looks better this way. If you're interested, the JavaScript to do this is in this file - http://bugmuncher.com/assets/js/common.js http://bugmuncher.com/assets/js/common.js - which reminds me, I really should minify that.