-
Notifications
You must be signed in to change notification settings - Fork 450
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
Cache hasAvatar to avoid call background flickering #4379
Conversation
Whenever the speaker changes, the avatar background can flicker due to HTTP calls. This fix improves it a bit by caching the information whether the user has an avatar or not, so allows a less delayed loading of the avatar background. Signed-off-by: Vincent Petry <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ma12-co this PR is only about the background and that one looks stable/fine in your video. For the avatar's "white circle" please also check out nextcloud-libraries/nextcloud-vue#1457. Make sure to repeat the operations multiple times: the first time you'll still see artifacts and after the cache is populated, switching should not show any glitch (except for "stop following" which I observed locally) |
Signed-off-by: Vincent Petry <[email protected]>
Adjusted to use browser storage. However I'm not using the |
backport to stable20 here #4514 |
Whenever the speaker changes, the avatar background can flicker due to
HTTP calls. This fix improves it a bit by caching the information
whether the user has an avatar or not, so allows a less delayed loading of
the avatar background.
This only affects the avatar background.
For the avatar itself, you also need nextcloud-libraries/nextcloud-vue#1457 in place.
Best is to test both together.