-
Notifications
You must be signed in to change notification settings - Fork 291
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 #337
Comments
I'm afraid it's not supported by the image content filter, but it definitely should. PR very welcome... |
The way I'm handling this might be of use to someone, and potentially could be turned into a patch or pull request. HTML:
Old JS:
New JS (
Thanks to the Featherlight crew for making it extensible. 👏 |
Fancybox v3 has a pretty ok implementation with data-srcset on the child elements |
@whatsnewsisyphus: Sadly it got licensing that is not free for commercial sites, hence an OpenSource solution would be nice. |
I know, but it is open source and provides an example implementation if somebody needs inspiration to do so for featherlight. |
In case an
<img>
withsrcset
/sizes
is provided, will it just work - or are there any JavaScript handlers that lazy load the image? If so, is this handled by Featherlight, too? Most CMS and sites usesrcset
/sizes
now.The text was updated successfully, but these errors were encountered: