views:

234

answers:

2

I'm writing a blog post that uses multiple videos from YouTube and Yahoo Video, but I'm not happy with how long it takes the page to render. Apart from using an ajax-y method to load the videos, are there any tricks that would make the page load quicker with multiple videos from different sources?

+1  A: 

There is no question getting multiple videos from different websites takes time. Have you tried obtaining a copy of those videos, upload it to your web server and embed your videos that way? It may increase rendering speed of your pages if the videos come from a single source.

chutsu
Thanks for the suggestion, chutsu. It's a good point, but unfortunately, I don't think it'll be possible to obtain copies other than just embedding the videos.
VirtuosiMedia
Why not? You can download the flash videos with the firefox plugin "FlashGot" (use good old google for more info on how to download 'flv' videos). And embed the flv video on your website.
chutsu
I dont think putting all the medias on the same server would make it faster. Most of big sites put images and other static content in another host to improve speed. The main reason is because browsers have a maximum number of simultaneous connctions to a single host. And if the YouTube server can be more fast than yours server.
Leonel Martins
+1  A: 

Your "ajax-y method"s will be the only way to speed this up. Large sites are going to be using a CDN and have good caching. There is no way around large files taking a long time...

Keeping the object or video tag out of the HTML and then adding it after page load, will improve perceived page load performance. Perhaps swap out an screengrab image that is the same size as the eventual video...

It's early days for the video tag, but it's possible that eventually it's initialization time will be faster than Flash, since it's part of the browser and not a 3rd party plugin.

The bulk of the video load time depends on how the video was encoded/transferred which is out of your control, it sounds like.

Ozten