help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: On markdown images


From: Yuri Khan
Subject: Re: On markdown images
Date: Sat, 1 May 2021 18:09:21 +0700

On Sat, 1 May 2021 at 17:23, Jean Louis <bugs@gnu.support> wrote:

> Probably I was using page load speed or other type of validator and
> have mistaken it for HTML validator, thanks for correction.

Width and height attributes, when their values are correct, do help
the browser lay out the page. It can reserve a known space before the
image gets downloaded and go on processing the rest of the page.

When width and height are missing, the browser does not know how much
space to reserve, so, when it finally receives the image and finds out
its dimensions, it has to go back and re-layout everything from the
point of the image.

Explicit width and height attributes are not the only way to mitigate
this. For example, one could specify image dimensions in CSS. Or just
redefine some images to be block elements and fit 100% of their
container width.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]