Superflous html code when using mediarepositoryImageThumb #136

Closed
rgasch opened this Issue Nov 8, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@rgasch

rgasch commented Nov 8, 2011

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.

@Guite

This comment has been minimized.

Show comment Hide comment
@Guite

Guite Nov 8, 2011

Owner

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.

Owner

Guite commented Nov 8, 2011

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.

@Guite Guite closed this Nov 8, 2011

@Guite Guite self-assigned this Dec 15, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment