P
P
Pavel Gogolinsky2016-02-06 14:51:37
JavaScript
Pavel Gogolinsky, 2016-02-06 14:51:37

Which slider does preloader support?

I use slick slider to show slides/banners. The problem is that when the page is loaded, all the slider images appear in a column for a second, and only after they are fully loaded, the slider is formed. Looks very untidy. How do you usually make a preloader for a slider that is first formed and only then displays images?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail, 2016-02-06
@mix_gorbachev

I advise you to just use jquery.imagesloaded
https://github.com/desandro/imagesloaded

V
Vitaly Inchin ☢, 2016-02-06
@In4in

Let me guess?

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

Assemble the slider right after loading the HTML code.
<div id="slider">...</div>
<script type="text/javascript">
$("#slider").slick(...);
</script>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question