Replies: 1 comment 2 replies
-
Hi! Sorry I haven't answered this - busy. Did a little digging and I can agree, this behavior is weird! Will get back to you in the next couple days |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm totally new to responsive images.
I've been reading the documentation of JPT (very good by the way) and the MDN article linked from it (and some extras regarding the
source
and its attributes).I'm building a site with bootstrap, so I defined the same breakpoints and added a preset for the home page as follows
For testing my issue, I am intentionally only defining
xs
undersizes
and the default size.The picture rendering can't be simpler:
The generated html is:
When I inspect in chrome (in any viewport width), it is using
/assets/images/generated/home-490-61fbb2b73.webp
as current source.I have 2 questions regarding this result:
1.- (The obvious one) Shouldn't Chrome be using
/assets/images/generated/home-367-61fbb2b73.webp
?2.- Shouldn't JPT be setting the image with width=457px as the default one? Why does it set the one with width=490px?
Any help would be very appreciated.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions