Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

It looks like a user's gravatar is loaded in chat every time he adds a chat message, although it's already loaded before.

I think it's sufficient to load that image only once, and use the same loaded resource when the user adds a chat message.

It might not look so important, but does matter for people who have problems with Gravatar.

So to clarify my suggestion: I suggest to make the gravatar image for every user in the chat load only once at the first time it's needed, and then be used whenever he makes an action (mainly add a new message).

share|improve this question
@PopularDemand: You mean loading every time? I'm sure it's what happens, if your internet connection has problems with gravatar you will realize that it loads everytime. – Tamer Shlash Nov 2 '12 at 21:57
Oh, I see what you're saying now. Yeah, this makes sense. – Pops Nov 2 '12 at 22:17
Very interesting. I've always noticed the problem, but wasn't sure how to implement a solution (can the same image node be used over and over?) And even if it does, won't it have to load it again? – Madara Uchiha Nov 3 '12 at 0:08
AFAIK once a resource is loaded it can be used again and again in any place on the page. A quick solution I could think of is to make a UserID<->ImageURL hash and look it up whenever a new chat message is posted. – Tamer Shlash Nov 3 '12 at 0:27

You must log in to answer this question.

Browse other questions tagged .