aFarkas / lazysizes

High performance and SEO friendly lazy loader for images (responsive and normal), iframes and more, that detects any visibility changes triggered through user interaction, CSS or JavaScript without configuration.
MIT License
17.39k stars 1.73k forks source link

lazysizes + lightbox? #454

Open majkimajki opened 6 years ago

majkimajki commented 6 years ago

Hi,

Any idea what might be causing lightbox not to work with lazyzies (https://github.com/aFarkas/lazysizes)?

All images that are lazyloaded do not work in the gallery?

ghost commented 6 years ago

Sounds like you have a container doesnt get the size of the content so it has a height:0. There are various way to fix it. You can set the size to fixed values or use a event (like shown for bootstrap modals) and update the modal.