i have an active site with 3 slick sliders on one page, usually the slick doesn't initialise and instead i just see all the images, sometimes if i refresh they all start working.
https://au.hairandme.com.au/collections/all/products/hair-rejuvenation-treatment
is the page in question.
( function($) {
$.noConflict();
$(document).ready(function() {
$('.HEROSLIDE').slick({
autoplay: true,
autoplaySpeed: 2000,
pauseOnFocus: false,
});
$('.HEROSLIDEMOBILE').slick({
autoplay: true,
autoplaySpeed: 2000,
pauseOnFocus: false,
});
$('.benefits-slider').slick({
centerMode: true,
centerPadding: '60px',
slidesToShow: 3,
responsive: [
{
breakpoint: 1024,
settings: {
arrows: true,
centerMode: true,
centerPadding: '40px',
slidesToShow: 3
}
},
{
breakpoint: 768,
settings: {
arrows: true,
centerMode: true,
centerPadding: '40px',
slidesToShow: 2
}
},
{
breakpoint: 480,
settings: {
arrows: true,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
}
]
});
$('.accordion').accordion({
defaultOpen: '',
cookieName: 'accordion_nav'
});
});
} ) ( jQuery );