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) {
}
});
}
});