February 19, 201214 yr I'm creating a website with a YouTube video embed on the homepage, according to Pingdom it adds around 200KB+ to the page and is a large chunk of the loading time, it also contains 10 HTTP requests! Are there any workarounds to this? For example I've seen in places where it won't load the video until you click on it. Because some users of the site won't watch the video, therefore it'll be silly to increase the loading time for something that everyone may not use. Thanks for any help (: Edited February 19, 201214 yr by Charlie
April 15, 201313 yr You can do what Google+ does. Instead of showing the player, show a tumbnail preview image of the video with a play button overlaid. When a user clicks, it should get replaced with the actual player. You can either write the javscript for that logic or use the one from here. skipser[dtcom]/501
Create an account or sign in to comment