glide
glide copied to clipboard
Page freezes when no elements are inside .glide__slides
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();
@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!
@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!