防止逐步(逐行)加载背景图片 [英] Prevent progressive (line by line) loading of background image

查看:112
本文介绍了防止逐步(逐行)加载背景图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法来加载背景图像(CSS),就像它们一旦加载就出现一样,而不是向下滚动".我宁愿让图像在一闪之后延迟300毫秒出现,而不要让图像看起来像是不良的PowerPoint效果.

I am looking for a way to have the background-images (CSS) load as if they were appearing once loaded, and not "rolling down". I'd rather have an image appear 300ms late in one flash instead of having it appear like a bad PowerPoint effect.

除缓存外,可以使用任何技术或特定代码吗?

Any techniques or specific code that could be used (besides caching)?

谢谢

推荐答案

首先,如果您的图片出现在向下滚动"中,则该图片太重了.

First, if your image appear in "rolling down" it's Image it's too heavy.

存在其他程序或网站,以减少您的网络形象(而不会降低质量) 例如, Yahoo SMUSH.IT!很好!

Exist different program or website for reduce your image for web ( without losing quality ) for sample, Yahoo SMUSH.IT! is good for that!

之后,我不知道是否存在下载后出现背景图像的方法……也许是在JavaScript中……

After, I don't know if existing a method for appear background-image after download... maybe in JavaScript...

这篇关于防止逐步(逐行)加载背景图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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