Infinite autoplay stops after some time
See original GitHub issueI’m using infinite autoplay of about 7 slides, one slide per view, 5 seconds delay. Each slide is just a jpg image. When page is loaded autoplay starts automatically. I leave the page open in my browser tab. But then after few minutes (or hours) I get back to the page to discover that autoplay has stopped. Would there be any hints on how to debug this problem, where could it be coming from?
Tried in different browsers (Firefox, Chrome). I’m using slick 1.3.15 with next settings:
<head>
<link rel="stylesheet" type="text/css" href="css/slick.css"/>
[...]
</head>
<body>
<div class="show-class">
<div><img ...></div>
</div>
<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="js/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="js/slick.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var delay = 5000;
$('.show-class').slick({
infinite: true,
slidesToShow: 1,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: delay,
speed: 1000
});
});
</script>
</body>
[...]
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Slick Slider stops looping
js, the way I have it working is that it shows an image for 1second then moves to the next slide which auto...
Read more >Stop autoplay: understanding manipulative time sinks
For kids, infinite scroll can be especially troubling. They may not realize that there's more content available and keep scrolling indefinitely.
Read more >Autoplay disappeared in Apple Music - Apple Community
Good news, the infinity symbol for Autoplay is still a feature with the Music app. Have you restarted your iPhone since noticing you're...
Read more >AutoplayOptions | Swiper - v8.4.5
Set to false and autoplay will not be disabled after user interactions (swipes), it will be restarted every time after interaction. default.
Read more >Autoplay
If you enable autoplay, you should also provide a play-pause button for accessibility — which is required to meet WCAG criteria. To mount...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the problem was the pauseOnHover setting which by default is enabled. I have disabled it and so far so good. Will see if that completely solves the problem.
Yep, seems it was because pauseOnHover was enabled. We disabled it and it works perfectly now. Thing is we are running browser in full-screen mode without mouse in production, so we definitely do not need no pause.
Closing the issue, thanks!