Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Avoid layout shift #3

Closed
djmtype opened this issue Feb 26, 2023 · 2 comments
Closed

Avoid layout shift #3

djmtype opened this issue Feb 26, 2023 · 2 comments

Comments

@djmtype
Copy link

djmtype commented Feb 26, 2023

The img needs width and height props, otherwise there could be major layout shifting (CLS).

@rdela
Copy link
Owner

rdela commented Mar 3, 2023

Yes, agree, especially now that #1 landed. I am thinking of bringing in the examples from JonasKruckenberg/imagetools#421 since it was closed without merging. I'll ping you here when that's merged and you can review the new examples if you're up for it.

@rdela
Copy link
Owner

rdela commented Mar 3, 2023

See also #2 (comment)

@rdela rdela closed this as completed Dec 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants