-
Notifications
You must be signed in to change notification settings - Fork 1
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
Srcset support #1
Comments
Example of doing this manually using timber resize: |
The Timber example is better, but posting this anyway https://github.com/aFarkas/lazysizes |
@kylehotchkiss used lazysizes recently with imgix. could be worth doing |
http://www.kylehotchkiss.com/photography/ Live Examples here |
Chiming in a year later, and srcset is here to stay! You can take advantage of the responsive images in core using the
Swap out |
Srcset looks to be on it's way. It will soon be in chrome. It's already in webkit.
For others, we can polyfill and serve low res and high res:
https://github.com/borismus/srcset-polyfill
Our most common use case would be for images in a blog post, carousel, etc. We could have a low res 320px version, and then a higher res version that gets served to desktops widths.
There is some debate over what to do for retina phones, I'm pretty firmly in the "don't send them huge images over 3g/4g" camp, but that could be a point of discussion.
Just noting for the future
http://www.smashingmagazine.com/2015/02/24/ricg-responsive-images-for-wordpress/
Next version of WP is almost out and is going to have the above mentioned plugin:
The picturefill site has some ongoing docs about various patterns, should we follow the WP syntax?
Lastly sizes support is also almost universal in browers (IE future in 13, and was added to safari 9 and ios9)
http://caniuse.com/#feat=srcset
Do we even need the polyfill?
The text was updated successfully, but these errors were encountered: