Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

259
Visualizações
tiny slider vertical slider large layout shifts.. how to fix?

I am using tiny slider and the vertical slider option causes large layout shifts while loading. I get this message in Google Page Speed "Avoid large layout shifts". I would like to fix. Please can someone recommend a fix?

I have 2 vertical sliders next to each other and 1 stretches below the viewport while loading.

Demo link/slider setting: https://codepen.io/matt-giggs/pen/wvyMBzR

jQuery(window).bind("load", function() {
    
  if (document.querySelectorAll('.tiny-slider').length > 0) {
      const slider1 = tns({
            container: ".tiny-slider",
            items: 3,
            slideBy: 1,
            axis: 'vertical',
            autoplayDirection: 'forward',
              "mouseDrag": false,
            "swipeAngle": false,
            "speed": 500,
            "autoplay": false,
            touch:false,
            autoplayButtonOutput : false,
            nav: false,
            loop: true,
            autoHeight:false,
            autoWidth:false,
            preventActionWhenRunning : true,
            preventScrollOnTouch : 'auto',
                     controlsContainer: '.slider-controls',
                              onInit: function (info) {


                              }   
      });
  }

    
});

Here's how it looks when loading - loading

Loaded - Loaded

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda