Skip to content

Conversation

@haarg
Copy link
Member

@haarg haarg commented Oct 4, 2022

This shows the gravatar for logged in users that have a PAUSE account linked.

In the future, we could consider extending this to show GitHub avatars for users that don't have a PAUSE account.

haarg added 2 commits October 4, 2022 18:14
Rewrite the user data fetching using modern APIs to avoid the X-Requested-With header, and add a preload tag to load the login status data as early as possible. This should decrease the time before we're able to display the user's account icon. Also remove the extraneous function when loading user data. It includes a comment referencing possibly optimizing for when there is no login cookie. But the login cookie is http only, so we can't check it in javascript. The response from login_status without a cookie is cached, so there isn't any real opportunity for further optimization or caching. So the comment can also be removed as extraneous.
@oalders oalders merged commit 901d17f into master Oct 4, 2022
@oalders oalders deleted the haarg/show-user-avatar branch October 4, 2022 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants