Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
I am looking for a way to speed up the display of sliderPro

I am looking for a way to speed up the display of sliderPro. I have tried adding lazy loading from the sliderPro distribution, but there is no change in the display. If I change $(document).ready(function()) to $(window).load(function()), the slider does not move.

  <script src="js/slider/dist/js/jquery.sliderPro.min.js"></script>
  <link rel="stylesheet" href="js/slider/dist/css/slider-pro.min.css"/>
  <script>
    $(document).ready(function(){
      $( '#clinic' ).sliderPro({
        width: 750,
        height: 500,
        fade: true,
        arrows: true,
        buttons: false,
        fullScreen: false,
        shuffle: false,
        thumbnailArrows: true,
        autoplay: false,

      });
    });
  </script>  
<h2 class="low">text</h2>
<div class="slider-pro" id="clinic">
<?php
$imglist = [
'xx' => 'clinic_01.jpg',
'xxx' => 'clinic_02.jpg',
'xxx' => 'clinic_03.jpg',
'xxxx' => 'clinic_04.jpg',
'xxxx' => 'clinic_05.jpg',
'xxxx' => 'clinic_06.jpg',
'xxxx' => 'clinic_07.jpg',
'xxxx' => 'clinic_08.jpg',
'xxxxx' => 'clinic_09.jpg',
'xxxxx' => 'clinic_10.jpg',
'xxxxx' => 'clinic_11.jpg',
'xxxxx' => 'clinic_12.jpg',
'xxxxx' => 'clinic_13.jpg',
'xxxxxx' => 'clinic_14.jpg',
'xxxxxx' => 'clinic_15.jpg'
];

$max_num = 15;

$tpl =<<<EOT
<div class="sp-slides">
<div class="sp-slide">
<img class="sp-image" src="images/gallery/%s" alt="%s">
<p class="sp-layer sp-white sp-padding" data-position="bottomLeft" data-src="images/gallery/%s" data-vertical="0" data-width="100%%" data-show-transition="up">%s</p>
</div>
</div>
EOT;
$count = 0;
foreach ($imglist as $alt=>$imgfile)
if (++$count < $max_num) printf($tpl . PHP_EOL, $imgfile, $alt, $alt, $alt);
else break;

?>
<div class="sp-thumbnails">
<?php
$tpl =<<<EOT
<img class="sp-thumbnail" src="images/gallery/%s" alt="%s">
EOT;
foreach ($imglist as $alt=>$imgfile)
printf($tpl . PHP_EOL, $imgfile, $alt);
?>
</div><!-- sp-thumbnails -->
</div><!-- slider-pro -->
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!