在主页中嵌入视频应该减慢页面速度吗? [英] should embedding video in home page slow down the page?

查看:53
本文介绍了在主页中嵌入视频应该减慢页面速度吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在主页中嵌入演示我的应用程序的视频,它会显着降低页面速度吗?

我尝试并检查了加载视频预览需要将近 1 秒的时间.由于视频流不会被下载,直到点击视频,整个视频不必下载.

是否建议在首页嵌入视频?或者我应该把它放在一个不同的页面上,然后在主页上放一个链接.

解决方案

如果您要嵌入 Flash flv 视频,则可以,它可能会减慢页面加载速度.这是因为页面需要加载 flash 插件才能获取内容大小等并渲染初始帧等.

但这并不意味着这是一件坏事.这不会是一个极端的减速(现在 Flash 已经被高度优化了),所以除非你试图在页面加载中勉强维持每一点性能,否则应该评估它的外观而不是性能

If I embed a video demonstrating my application in my home page, will it slow down the page to a considerable amount?

I tried, and checked that it takes almost 1 sec, to load the preview of the video. And as the video stream will not be downloaded until, the video is clicked, the total video do not have to get downloaded.

Is it recommended to embed a video in the home page? Or should I just keep it in a different page and put a link in the home page.

解决方案

If you are embedding a flash flv video then yes, it could slow the page load down. This is because the page will need to load the flash plugin in order to get the content size, etc and render the initial frame etc.

Doesn't mean it's a bad thing though. It won't be an extreme slowdown (flash is pretty highly optimised nowadays), so instead evaluate on how it looks rather than performance unless you are trying to eke out every dreg of performance on your page load :)

这篇关于在主页中嵌入视频应该减慢页面速度吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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