Hey there, thanks for this awesome library! I think it'd be cool to give an option to put the bot and user avatar image as srcset to not have better performance.
Activity
LucasBassetti commentedon Oct 27, 2018
I think is better have a better performance, isn't?
BraunreutherA commentedon Oct 31, 2018
Sry yes i meant to have a better performance. With src set the browser could select the image in the correct resolution / size.
pascalgagneur commentedon Mar 17, 2019
@BraunreutherA would dpr option be enough?
https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images#Resolution_switching_Same_size_different_resolutions
A possible solution to implement would be:
LucasBassetti commentedon Sep 26, 2026
Workaround: pass a data URL or a single high resolution image in
botAvatar/userAvatar, and style it withavatarStyle.This is not part of the maintenance pass in #392, and the project is not adding new features, so I'm closing it. Thanks for the suggestion!