From: Andy Allan Date: Wed, 29 Sep 2021 17:47:20 +0000 (+0100) Subject: Specify avatar dimensions in html tags X-Git-Tag: live~2487^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/9f61d6c1cf2d796ba8089f299679c2496ecfbbca?hp=9f61d6c1cf2d796ba8089f299679c2496ecfbbca Specify avatar dimensions in html tags This prevents reflow when the images are loaded by the browser. ActiveStorage variants are resized lazily when the image is requested, so we only know the dimensions if the image was already loaded. This means that there will be one reflow just after a new avatar is first viewed. ---