glide icon indicating copy to clipboard operation
glide copied to clipboard

Page freezes when no elements are inside .glide__slides

Open tannermann opened this issue 5 years ago • 2 comments

The page freezes and sends my browser's CPU usage to 100% when I mount an empty slider. I am hoping for a more graceful failure.

<div id="home-products__slider" class="glide">

	<div class="glide__track" data-glide-el="track">
	    
	    <div class="glide__slides">

	    </div>

	</div>

</div>

Here's the JS:

var productsSlider = new Glide('#home-products__slider', {
	type: 'carousel',
	perView: 4,
	focusAt: 1,
	gap: 0,
	breakpoints: {
		1199: {
			perView: 3
		},
		991: {
			perView: 3
		},
		767: {
			perView: 2
		},
		575: {
			perView: 1,
			focusAt: 0
		}
	}
});
productsSlider.mount();

tannermann avatar Jan 14 '21 05:01 tannermann

@jedrzejchalubek Any chance of a fix or update to this awesome slider any time soon? We all appreciate your work on this. Just knowing it is still an active project would be great!

tannermann avatar Mar 15 '21 19:03 tannermann

@thenomadicmann No, any time soon 😞 I surely not going to abandon the project! but lately don't have much time for open source work, sorry about that!

jedrzejchalubek avatar Mar 16 '21 20:03 jedrzejchalubek