Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Superflous html code when using mediarepositoryImageThumb #136
When you display an image and specify a size using mediarepositoryImageThumb the currently generated code also includes the html tags "width" and "height". From my tests I conclude that these are unncessary as the mediarepositoryImageThumb size designation already ensures that the images has the specified size.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
There is a good good reason for width and height tags: Performance and Accessibility.
If the html code explicitely includes image dimensions the user agent / browser knows these earlier and can therefore preassign the required space. This can lead to significant improvements from user perspective during the page display as the browser does not change or resize things after another image has been loaded.