开发者

Possible to cache elements with jquery to improve show/hide time?

开发者 https://www.devze.com 2023-03-11 20:11 出处:网络
I have a slide show that uses easing to hide/show divs. A couple of the divs have flash videos and they are reloaded (that is, the file not the movie) every time the respective slide \"show开发者_高级

I have a slide show that uses easing to hide/show divs.

A couple of the divs have flash videos and they are reloaded (that is, the file not the movie) every time the respective slide "show开发者_高级运维s".

Is it possible to cache these files so they dont have to be reloaded every time?

Thanks

EDIT

I'm using the Jquery plugin Cycle

$('#slideshow').cycle({
    fx: 'fade',
    timeout:5000,
    cleartype: 0 
}); 


Just doing some quick tests, in FF 4 (on a Mac), it looks like display none -> display block has a little lag, whereas visibility hidden -> visibility visible doesn't. You could try reworking your slideshow script to toggle visibility rather than display

0

精彩评论

暂无评论...
验证码 换一张
取 消