Hi AZ WIKI,
The width and height attributes are not added by this plugin. They are added by WordPress when you insert the image in the content. We use the values of those two attributes to get size info of the image and calculate the values for the srcset and sizes attributes.
Adding srcset and sizes attributes to image elements is what responsive images is about. Those attributes make browsers load different image sizes depending on what size the image is actually being displayed and if it’s an HD screen or not.
Your CSS will override the values of the width and height attributes. There is no need to remove them.
Thread Starter
AZ WIKI
(@voinichgmailcom)
Thanks, Jasper.
It appears that resent WordPress update (4.4) included srcset attribute, so there is probably no need to duplicate the functionality, if I’m not mistaken.
That’s correct. We implemented the code from the plugin in WordPress 4.4. The plugin still offers two features that are not WordPress core.
The plugin adds Picturefill to your site. It’s a small JavaScript file that makes srcset work on browsers that don’t (fully) support that attribute: http://caniuse.com/#search=srcset
Besides that, the plugin offers advanced image compression. See https://github.com/ResponsiveImagesCG/wp-tevko-responsive-images/tree/dev#advanced-image-compression.
The plugin doesn’t load the new responsive images functions if you are using WordPress 4.4 and there won’t be any conflicts.