• When I open/refresh the page where the slider is, it is loading for a long time. I have noticed that when I change the “Delay between each slides” from 5000 to 500ms for example, also the load time of the slider is reduced alike. So it seems like this delay is set also to the first slide when the slider is first initialized.

    Can this be fixed?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter elisesky

    (@elisesky)

    It seems to be the bootstrap carousel, so the first slide needs to have class=”active” in it.

    Thread Starter elisesky

    (@elisesky)

    More info:

    I see there is this check in the tc_voila_slider.php file:

    if ($i==0) {$active =’active’;}

    and when I change $i==1 it works.. This is really weird because $i is set to 0 at the beginning.

    Thread Starter elisesky

    (@elisesky)

    So the active check does not work if you have removed some slides.

    Something like this works:

    $first = true;
    
    ...
    
    <?php if (isset($slider_checked) && $slider_checked == 1) :
       $active ='';
       if ($first){$active ='active'; $first=false;}
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Slider load delay’ is closed to new replies.