slick icon indicating copy to clipboard operation
slick copied to clipboard

Wrong container size with native lazyloading

Open jakubkaderavek opened this issue 4 years ago • 5 comments

Hi,

we use native lazyloading with attr loading="lazy" in image tag. When you are on some slow network (I use for simulation slow 3G, then is slick inicializied before images are loaded a it has wrong height in div.slick-list

My settings is:

{ dots: true, cssEase: 'linear', adaptiveHeight: true, rows: 0, slidesToShow: 1, autoplaySpeed: 3000, }

There is slider (second one, not the first in top with testimonials):

https://mladypodnikatel.cz/eshop-klub

Is there any fix how can we solve this issue?

Thank you

jakubkaderavek avatar Oct 06 '20 19:10 jakubkaderavek

+1 We have the Same Problem

ridculy avatar Mar 25 '21 12:03 ridculy

I am facing the same issue!

sushmak02 avatar Jul 30 '21 07:07 sushmak02

This is an issue - you may need to suppress the lazy attribute on the images as a workaround. otherwise it inits at the wrong size.

HongPong avatar Nov 05 '21 01:11 HongPong

+1. We encounter the same problem

florianschieder avatar Oct 04 '23 12:10 florianschieder

Bump.

SteveGZr avatar Oct 04 '23 12:10 SteveGZr