在幻灯片放映前加载所有图像 [英] loading all images before slideshow

查看:95
本文介绍了在幻灯片放映前加载所有图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个包含30-40张图像的幻灯片.我想在显示幻灯片之前加载所有这些图像,怎么做? 只有在加载完所有图像后,我才能播放幻灯片.

I want to create a slideshow which contains some 30-40 images. I want to load all these images before showing the slide show, how it can be done? I will play my slideshow only after all images are loaded.

推荐答案

[根据我的先前经验]

[From the previous experience of mine]

我认为同时preload或一次加载所有30-40张图像不是一个好主意.因为它使Web服务器非常繁忙来处理请求.互联网连接速度的人呢?此外,当您只希望在所有图像都加载后才开始幻灯片放映时,用户可能会或可能不会一直呆在您的页面上,直到所有图像都加载完为止.我建议你做一些类似的事情,

I think its not a good Idea to preload or load all 30-40 images at once. Because It makes the web server very busy to handle the request. What about the people having very slow Internet Connection ? more over when you want your slideshow begin only after all images are loaded, the user may or may not stay on your page until all your the images are loaded. I suggest you do some thing like,

lets assume that your Slide show consists of 40 Images,
Preload the first 10 Images  and let the slide show begin,
when the slide show is in process,
send a Asynch request or what ever and download the remaining content. 

我想这是比一次加载所有图像有效的方法

I guess this is an efficient way than loading all Images at once

这篇关于在幻灯片放映前加载所有图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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