malsup / cycle2

2nd gen cycling
899 stars 239 forks source link

Issue regarding Progressive & add/remove commands #461

Open JamoCA opened 10 years ago

JamoCA commented 10 years ago

I used the Progressive Loading (JSON Data) example from here for a 10 image slideshow: http://jquery.malsup.com/cycle2/demo/progressive.php

I then added a new image using the "add" command every 60 seconds. I also had a cleanup function that would run 30 seconds afterwards and run the "remove" command to remove any of the first slides so that it would continue to have 10 maximum slides. This works until after 10 minutes when all initial images have been removed. slideCount indicates that 10 slides exist. I can inspect the object and see that there are 10 images and verified that they are still being added & removed, but the slideshow is empty and nothing is displayed.

I've removed the progressive & loader:true options and it now works without any issues. Is this a bug or intentional?

cressman commented 9 years ago

This appears to be a more specific case of a general problem with adding slides - see #281