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

Autoplay don't work on mobile #57

Closed
Vanlen1er opened this issue Sep 28, 2022 · 4 comments
Closed

Autoplay don't work on mobile #57

Vanlen1er opened this issue Sep 28, 2022 · 4 comments

Comments

@Vanlen1er
Copy link

Describe the bug
The slider work fine on desktop and on the adaptative view on desktop, but on my mobile the autoplay don't work, i see only the first image. (scroll works)

Smartphone (please complete the following information):

  • Device: S20fe and iPhone XR
  • OS: iOS 16, android 13
  • Browser: Safari, chrome and firefox

Additional context
www.eliot.fr

@nicped
Copy link
Member

nicped commented Sep 29, 2022

I can see that the script does not load at all - and something weird is going on with the script "tarteaucitron" which seems to prevent the script from loading:

image

Seems to not load - it is not in your document sources.

image

To fix this, move the swiffy slider script tag to the header of the site. It is deferred, so you will win nothing from loading it before the body end tag.

@nicped
Copy link
Member

nicped commented Sep 29, 2022

Ah - I now see your are missing a <script> close tag (</script> or <script src... />):

image

@nicped nicped closed this as completed Sep 29, 2022
@nicped
Copy link
Member

nicped commented Sep 29, 2022

Should look like this:
<script src="https://cdn.jsdelivr.net/npm/swiffy-slider@1.6.0/dist/js/swiffy-slider.min.js" crossorigin="anonymous" defer></script>

@Vanlen1er
Copy link
Author

Vanlen1er commented Sep 29, 2022

Ahhh yes my bad :( sorry for the inconvenience :)
Thx

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