$(document).ready(() => {
    let slickCheckingCount = 0;
    const slickChecking = setInterval(() => {
        slickCheckingCount++;

        if (slickCheckingCount > 100) {
            clearInterval(slickChecking);
        }

        if ($('').slick()) {
            $('.ecommerce-carousel')?.slick({
                arrows: true,
                slidesToShow: 1.5,
                slidesToScroll: 1,
                infinite: false
            });
            clearInterval(slickChecking);
        }
    }, 200);
});
