Skip to content

perf: skip message skeleton if it is cached #10750

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

Merged
merged 1 commit into from
May 9, 2025
Merged

Conversation

st3iny
Copy link
Member

@st3iny st3iny commented Feb 25, 2025

Resolves #10749

Cache messages in the frontend directly. Only show the skeleton if message is not yet cached.

I also delayed the skeleton animation by 200 milliseconds as we also do HTTP level caching. To prevent flickering in case the message is not cached in the frontend but by the browser.

Screencasts

No browser cache + extremely slow connection

2025-02-25.21-33-00.mp4

Browser cache + normal connection (localhost)

2025-02-25.21-35-27.mp4

@kesselb
Copy link
Contributor

kesselb commented May 9, 2025

@st3iny please rebase, linter, and dco ;)

@st3iny st3iny force-pushed the perf/message-skeleton branch from 3f66b12 to fa14e2c Compare May 9, 2025 13:48
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@st3iny st3iny force-pushed the perf/message-skeleton branch from fa14e2c to cd2603d Compare May 9, 2025 14:12
@kesselb kesselb merged commit 99e77e8 into main May 9, 2025
35 checks passed
@kesselb kesselb deleted the perf/message-skeleton branch May 9, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't show loading skeleton each time a known message is opened
3 participants