-
Notifications
You must be signed in to change notification settings - Fork 26
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
thoughts on <picture> support? #9
Comments
Hi, @eleith! Thanks for getting in touch. Working around it nowIf you need to use The documentation and types declare I put together a quick demo of this: Reiterating the note in that link:
(Aside: if you only care about changing the image dimensions, and not the source type or the source altogether, then Note on versioningThis was actually documented in early versions (and Future APII would like to have a Hope this helps :) |
awesome response. thank you. my current use case is thinking about how i would support browsers that can view webp. for now, i'm using srcset to support hdpi devices and that works very well with this library. let me play around with some of the ideas you have above. fyi, i am using helper components i've written to take advantage of common patterns i was using in adopting this library (https://gist.github.com/eleith/a1b78d2c869895f8079b0d66d171144c). so definitely my first thought in terms of an API was around how the helper component i would write would look like =] |
Hi,
|
great library. I've enjoyed using it.
your roadmap doesn't mention < picture > support.
what is your thought on that.
any suggested workarounds to support both lazy loading images with this library but using < picture > to load the right image supported by the browser?
The text was updated successfully, but these errors were encountered: