$(window).on('load', function(){ $('.wrap_main').slick({ arrows: false, fade: true, autoplay: true, autoplaySpeed: 1600, speed: 1600, pauseOnHover: false, }); $('body#home.load #loading .icon').hide(); $('body#home.load #loading').fadeOut(); $('body#home.load').css('overflow', 'visible'); });