有没有办法在我的网站上更快地加载嵌入的YouTube视频? [英] Is there a way to load embedded YouTube videos faster on my website?

查看:224
本文介绍了有没有办法在我的网站上更快地加载嵌入的YouTube视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在撰写一篇博文,其中使用了来自YouTube和Yahoo Video的多个视频,但我对该页面呈现所需的时间不满意。除了使用ajax-y方法加载视频之外,是否有任何技巧可以让来自不同来源的多个视频加快页面加载?

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?

推荐答案

你的ajax-y方法将是加快这一速度的唯一方法。大型网站将使用 CDN 并提供良好的缓存。大文件无法花费很长时间......

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...

保持对象或视频标签不在HTML中,然后在页面加载后添加它将改善感知页面加载性能。也许更换一个与最终视频大小相同的屏幕图像......

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...

这是视频标签的早期阶段,但有可能最终它的初始化时间将是比Flash更快,因为它是浏览器的一部分,而不是第三方插件。

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.

这篇关于有没有办法在我的网站上更快地加载嵌入的YouTube视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆