import $ from 'jquery' import slick from 'slick-carousel' $(document).ready(() => { const $featuredArticles = $('.js-featured-articles') if ($featuredArticles.length > 0) { $featuredArticles.slick({ arrows: true, infinite: true, prevArrow: '', nextArrow: '', mobileFirst: true }) setTimeout(() => { $featuredArticles.slick('setPosition') }, 350) } })