Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

Won't work with lazy loaded images #13

Closed
lucadegasperi opened this issue Apr 29, 2016 · 4 comments
Closed

Won't work with lazy loaded images #13

lucadegasperi opened this issue Apr 29, 2016 · 4 comments

Comments

@lucadegasperi
Copy link

Hello,
I want to use this polifill together with https://github.com/aFarkas/lazysizes which I use to lazy load images and https://github.com/scottjehl/picturefill for the srcset polyfill.
My yes case is the following: I have a carousel with a srcset on the img tag. By default every image in the carousel has an inline placeholder image (base64 gif) The first image in the carousel loads correctly and this library does the job fine. For all the other images in the carousel I get the placeholder images instead.

@fregante
Copy link
Owner

Can you create a demo on codepen or similar that I can work on?

@brettburwell
Copy link

@lucadegasperi: It looks like Lazysizes recently added support for object-fit. Check it out here. I realize this is an old thread but I thought I'd pass it along in case it's useful.

@lucadegasperi
Copy link
Author

Thanks for letting me know :)

@fregante fregante closed this as completed Jan 2, 2017
@terryupton
Copy link

@lucadegasperi were you able to implement this? I have not been able to resolve...I can get the polyfill to work but not for lazyload images, only the first image. I have tried to use the support plugins in lazysizes but either I am not using correctly or it doesn't resolve this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants