A
A
Andrey2019-06-09 16:05:26
JavaScript
Andrey, 2019-06-09 16:05:26

Slow loading content in slick slider?

Good afternoon.
Faced such a problem, it turns out that the site has a block with tabs implemented on jquery ui, or rather these - https://jqueryui.com/tabs/
And in each tab there is a slick slider with blocks. And it turns out the problem is, everything is fine on the first tab, the slider works fine, but when you switch to the second tab or the third one, the slider takes a long time to load, or rather the block width is 5-10 pixels, then after a second or two, the blocks normalize and acquire normal look.
I can't figure out where I'm missing a moment or what I'm doing wrong, because the slider separately, not in tabs, works fine.
Maybe someone faced this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WhiteBearDev, 2019-06-10
@Andrey_Tech

Most likely the slider in your tab does not have time to initialize. Implement the display of the contents of the tab after the initialization of the slider (init event).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question