question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Infinite autoplay stops after some time

See original GitHub issue

I’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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

3reactions
dimircommented, Apr 12, 2015

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.

1reaction
dimircommented, Apr 13, 2015

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found