Currently, I am facing an issue with setting the height and width attributes for an image as I do not have access to its dimensions from the server. One solution I am considering is setting both the width
and height
values to auto
.
For example:
img {
height: auto;
width: auto;
}
However, I am hesitant about the impact on rendering performance when images do not have specific width
/height
. Any frontend developers out there who could provide some insight on this concern?