I'd like to propose adding a ?size query parameter that would return the intrinsic image width and height, much like ?lqip-colors works today. This would allow us to hint the aspect ratio to browsers in a custom component before the image is loaded to avoid layout shifts.
Hello!
Looking at this module to optimize web performance, and with this in mind: https://www.smashingmagazine.com/2020/03/setting-height-width-images-important-again/
I'd like to propose adding a
?size
query parameter that would return the intrinsic image width and height, much like?lqip-colors
works today. This would allow us to hint the aspect ratio to browsers in a custom component before the image is loaded to avoid layout shifts.Thanks!