Avoiding image layout shifts

By default, an <img> takes up zero space until the browser loads enough of the image to know its dimensions:

Read full article