Loading...
 
Skip to main content

srcset attribute

Brion Vibber wrote:
The current version of the patch uses the ‘srcset’ attribute as defined in the current HTML 5 working group version, only using the density options and not the width/height options. Since browsers don’t yet support this, I also include some JavaScript to check the display density and load the appropriate image from the srcset.


Responsive images for high-DPI displays in MediaWiki


Related

Collapse/expand modules below
Show PHP error messages