N
N
Nikita Shchypylov2017-03-02 13:34:47
css
Nikita Shchypylov, 2017-03-02 13:34:47

Why does the slick-slider sometimes collapse?

Hello everyone
Site
Sometimes, and it is impossible to track the pattern, the slick collapses. Initialization passes, pictures are loaded, but at the output I get a narrow strip of a couple of pixels. After refreshing the page, everything falls into place
. What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Zhubartovich, 2017-03-02
@BLVST

Maybe the pictures are not loaded before the slick is initialized?

E
Egor Zhivagin, 2017-03-02
@Krasnodar_etc

Do you reload when you make changes? Maybe something is being cached?
Sergei is correct. Initialize slider in

$(document).ready( function(){
 ...
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question