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

fix: images keep size before loading #10750

Merged
merged 2 commits into from
Jan 30, 2025
Merged

fix: images keep size before loading #10750

merged 2 commits into from
Jan 30, 2025

Conversation

mattkrick
Copy link
Member

Description

Surprisingly, writing directly to the HTMLAttributes is fast enough so we don't need to maintain a local state while allowing per-pixel resizing.

this also sets the img.width and img.height properties so before the image loads, it takes up space

@mattkrick mattkrick merged commit 72bbb65 into master Jan 30, 2025
6 checks passed
@mattkrick mattkrick deleted the fix/resize-squish branch January 30, 2025 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant