Jquery: How can I place triggers on images already cached?

Posted by FLX on Stack Overflow See other posts from Stack Overflow or by FLX
Published on 2010-04-05T18:31:21Z Indexed on 2010/04/05 18:33 UTC
Read the original article Hit count: 300

Filed under:
|

Please see: hxxp://flx.me/h/0504/

Source: hxxp://pastebin.com/bDh5k3Qd

jquery.preload-min.js: hxxp://jquery.com/plugins/project/Preload

jquery.jplayer.min.js: hxxp://www.happyworm.com/jquery/jplayer/0.2.4/developer-guide.htm

I'm using jquery.preload-min.js to preload images and to send a play trigger to jquery.jplayer.min.js to start playing a mp3 file.

This works great when viewing the page for the first time (or force reloading all content). However, when the image has already been cached, it doesn't use the preloading script and thus does not send the play trigger to jplayer.

How can I make it send a play trigger even when the image is cached?

Thank you in advance,

Dennis

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery