Page jumps after loading pictures is a pain. It's well, aspect-ratio help to avoid it. For example if the picture has the 600x400px size we should set aspect-ration: 1.5 (600px / 400xp = 1.5) 💡
❤ Thank you so much, my sponsors: Tatiana Ten, Mikhail Ilin.
Hi Stas, how would you solve the aspect ratio issue if you do not know the aspect ratio in advance, e.g. because you're allowing users to update images that can be of any aspect ratio? Is there a CSS solution for that, or would it be necessary to rely on JavaScript for that?