Smoothslides.js图像预加载 [英] Smoothslides.js image Preload

查看:83
本文介绍了Smoothslides.js图像预加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在将 smootheslides.js 用作我网站上的主要横幅.但是,图像的这种预加载会延迟图像的显示.不知道如何显示实际情况,因为它不在实时站点上.

I am currently using smootheslides.js for the main banner on my site. However, there is this preload of the image that delays the display of the images. Not sure how I can show you the actual thing, as it's not on a live site.

实际上,即使在演示站点上,图像也有延迟.有什么办法可以避免延迟?

Actually even on the demo site the images has a delay. Are there any way I can avoid the delay?

推荐答案

昨天我实际上是在我的网站上这样做的.除了在服务器上具有较快的上载速度外,您无能为力.但是您可以将图像更改为Web类型,例如png 8位或gif.您还可以在图像中添加一些内容,例如下面的代码,但是它不会改变速度...

I actually did this for my site yesterday. Theres not much you can do other than having fast upload speed on your server. But you can change the images to web type like png 8 bit or gif. You could also add something to the you images like so the code below however it wont change the speed...

<img src'FILE' style='display: none' onload='this.style.display="block";'>

这篇关于Smoothslides.js图像预加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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