Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding image size query param #347

Open
sylvinus opened this issue Jan 22, 2022 · 0 comments
Open

Adding image size query param #347

sylvinus opened this issue Jan 22, 2022 · 0 comments

Comments

@sylvinus
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant