with Anythingslider and Ajax I made a slider that produce infinity slides. That works great. But I have to clean the old slides, that the page get not to big and kill the RAM.
I'm trying the following to have the possibility to go always 10 sliders back:
onSlideComplete: function(slider) {
if (slider.currentPage >= 21) {
$('#slider1 > li:not(.cloned)').slice(0, 9).remove();
$('#slider1').anythingSlider(11); // update the slider
}
}
I dont want the easing effect when I change the slider number to correct the deletion. Is that possible. Or there some better ways?
Thank you