vvvmax / unitegallery

Unite Gallery - Responsive jQuery Image and Video Gallery Plugin. Aim to be the best gallery on the web on it's kind. See demo here:
http://unitegallery.net
MIT License
531 stars 158 forks source link

Support srcset and picture #231

Open thomaskrakow opened 3 years ago

thomaskrakow commented 3 years ago

It would be great if Unite Gallery support the srcset and sizes attributes and the picture element for full responsive functionality.

srcset and sizes: https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images

Why support picture element: https://css-tricks.com/using-webp-images/

rustykowski commented 1 year ago

I agree. The srcset attribute in the original markup is currently omitted in the rendered DOM.