Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy loading doesn't work with responsive images ("srcset" attribute) #2547

Closed
stephenjbell opened this issue Oct 4, 2016 · 1 comment
Closed

Comments

@stephenjbell
Copy link

I love lazy loading in Slick Slider, but it doesn't work correctly if you're using responsive images with a "srcset" attribute, because modern browsers override the "src" with a value from "srcset".

Right now, Slick gets the value of "data-lazy" and puts it into "src" when the slide is navigated to. Would it be possible to load "data-lazysrcset" into the "srcset" attribute as well?

@leggomuhgreggo
Copy link
Collaborator

Hey @stephenjbell, It's in the works. Check out #1661.

Thanks!

Closing: duplicate

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

No branches or pull requests

2 participants