Ideal-Image-Slider-JS
Ideal-Image-Slider-JS copied to clipboard
DOM & Memory Optimization
PhotoSwipe keeps only three images in the DOM at once, because each “slide” is a composited layer, which consumes quite a lot of memory.
Almost no memory is consumed until the gallery is first opened.
The script has been tested for memory leaks. Navigating images back and forth and creating or deleting a gallery doesn’t leave a trace in memory.
Would be great if Ideal Slider also used just three slides to display images.