davidjerleke / embla-carousel

A lightweight carousel library with fluid motion and great swipe precision.
https://www.embla-carousel.com
MIT License
5.5k stars 167 forks source link

Autoplay and scroll have stopped working #368

Closed takeshi-mb closed 1 year ago

takeshi-mb commented 1 year ago

Bug is related to

Embla Carousel version

Describe the bug

CodeSandbox

Steps to reproduce

  1. Go to 'homepage'
  2. sections "le nostre camere", "dintorni", "attività" have cards that should autoplay
  3. Go to page "attività"
  4. sections "i sapori della tradizione", "tutto quello che ti serve" have cards that should autoplay.

Expected behavior

Additional context

I load the script in the footer with

davidjerleke commented 1 year ago

Hi @takeshi-mb,

If you open up your console in Chrome dev tools, you'll see a lot of errors. I'm not sure how you came to the conclusion that these errors are caused by the Embla library but I think you should start looking elsewhere in order to find the root cause of this. The library script isn't even loaded:

errors

Try googling Failed to find a valid digest in the 'integrity' attribute for resource and see if you find anything that can help you debug this. Maybe this StackOverflow question will get you on the right track.

Best, David

davidjerleke commented 1 year ago

@takeshi-mb did you find the cause?

takeshi-mb commented 1 year ago

Hi David, thank you for your help. Apparently it has to do with the use of SubResource Integrity. Basically my hash do not work anymore and why is yet to be determined. Today I removed them and all is working. I'll try to troubleshoot it and ask somewhere else. Sorry if I thought it was a problem of embla's library. It wasn't loaded because it was blocked by the SRI policy.

davidjerleke commented 1 year ago

Thanks for the response @takeshi-mb. I'm closing this as resolved then.

Cheers, David