 In some cases when the slider is vertical wraparound will have toShow = Infinity, causing an infinite loop and crashing the page out of memory It would appear that activeSlideIndex = Infinity because draggedSlides = Infinity at some point because effectiveSlideSize is 0 