I've been using the cycle plugin a lot lately (thanks a tonne, malsup!). I'm trying to write a wrapper plugin for the Cycle plugin that will allow me preload (more accurately, queue load) images for a banner slideshow.
I've run into an issue with the cycle.addSlide function... it seems to be adding my slides out of order. Has anybody run into this before? Some more details on what I'm trying to do: Each image is loaded individually, and once loaded they are added to the DOM via cycle.addSlide. I've set up 2 demos to better convey my issue. Demo 1 (http:// elidupuis.com/preloadcycle/index-v2.html) shows the slides added in the wrong order. Demo 2 (http://elidupuis.com/preloadcycle/index.html) is a variation of Demo 1 that adds each slide via the jquery.append() function and re-initializes the cycle plugin after each image is loaded -- obviously not ideal. Does anybody have any suggestions or ideas?