Codeinwp / Ideal-Image-Slider-JS

Quite simply the ideal Image Slider in vanilla JS.
http://idealimageslider.com
GNU General Public License v3.0
1.57k stars 160 forks source link

DOM & Memory Optimization #74

Open 3zzy opened 8 years ago

3zzy commented 8 years ago

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.