fake-api-docs icon indicating copy to clipboard operation
fake-api-docs copied to clipboard

Image elements do not have explicit width and height

Open nicobytes opened this issue 2 years ago • 1 comments

Set an explicit width and height on image elements to reduce layout shifts and improve CLS.

All images from API have 640 x 480 therefore could set this dimensions in img tag, like this:

<img width="640" height="480" />

Screen Shot 2022-04-02 at 11 05 57 PM

nicobytes avatar Apr 03 '22 03:04 nicobytes