Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page freezes when no elements are inside .glide__slides #538

Open
tannermann opened this issue Jan 14, 2021 · 2 comments
Open

Page freezes when no elements are inside .glide__slides #538

tannermann opened this issue Jan 14, 2021 · 2 comments

Comments

@tannermann
Copy link

tannermann commented Jan 14, 2021

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
Copy link
Author

@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!

@jedrzejchalubek
Copy link
Member

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants