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

perf(ui): render background color before loading preview image #1298

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

cotes2020
Copy link
Owner

Type of change

  • Improvement (refactoring and improving code)

Description

When the preview image doesn't load fast enough, the image area goes blank for a short while.

Before

The background of the preview image is blank, and when the LQIP appears quickly, it causes visual flickering.

before.mov

After

Rendering the background color before the image is loaded acts as a placeholder and makes it visually smoother.

after.mov

@cotes2020 cotes2020 merged commit 42bf39e into master Oct 4, 2023
7 checks passed
@cotes2020 cotes2020 deleted the preview-img-bg branch October 4, 2023 21:40
gudtldn pushed a commit to gudtldn/gudtldn.github.io that referenced this pull request Jul 26, 2024
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.

1 participant