JS Merge Breaking Carousels and Sliders in Magento 2: How to Fix

JS Merge Breaking Carousels and Sliders in Magento 2: How to Fix

Carousels slider breaks when js merge in Magento 2

You should move slider script to the head tag of the page.

To debug

  • Disable JS merge.
  • Add the js script you got from carousels sliders into the head tag, Script where you are calling the function has to come after the script where function jQueryowlCarousel is defined
  • Clear the cache and enable the JS merge.
Al Mahbub Khan
Written by Al Mahbub Khan Full-Stack Developer & Adobe Certified Magento Developer

Full-stack developer at Scylla Technologies (USA), working remotely from Bangladesh. Adobe Certified Magento Developer.