Skip to content

CB-2733 remove the cause of browser reflow#1305

Merged
devnaumov merged 1 commit intodevelfrom
CB-2733-safari-value-panel-image-issue
Nov 28, 2022
Merged

CB-2733 remove the cause of browser reflow#1305
devnaumov merged 1 commit intodevelfrom
CB-2733-safari-value-panel-image-issue

Conversation

@devnaumov
Copy link
Copy Markdown
Member

When an image loads, it goes from a height of 0 pixels to whatever it needs to be. This causes reflow, where the content below or around the image gets pushed to make room for the freshly loaded image. Reflow is a problem it’s a user-blocking operation. It slows down the browser by forcing it to recalculate the layout of any elements that are affected by that image’s shape. We force aspect ratio to avoid this issue.

@devnaumov devnaumov requested a review from Wroud November 20, 2022 21:08
@devnaumov devnaumov self-assigned this Nov 20, 2022
@devnaumov devnaumov changed the title CB-2773 remove the cause of browser reflow CB-2733 remove the cause of browser reflow Nov 21, 2022
@devnaumov devnaumov merged commit 1eb4d16 into devel Nov 28, 2022
@devnaumov devnaumov deleted the CB-2733-safari-value-panel-image-issue branch January 12, 2023 02:47
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

Successfully merging this pull request may close these issues.

2 participants