# UI breaks when letter avatar images don't load

**URL:** <https://meta.discourse.org/t/ui-breaks-when-letter-avatar-images-dont-load/36674>\
**Category:** UX\
**Created:** [14. Dezember 2015 um 05:40 UTC](https://meta.discourse.org/t/ui-breaks-when-letter-avatar-images-dont-load/36674 "2015-12-14T05:40:04Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![rxc](https://avatars.discourse-cdn.com/v4/letter/r/22d042/32.png) [@rxc](https://meta.discourse.org/u/rxc)\
**Post date:** [14. Dezember 2015 um 05:40 UTC](https://meta.discourse.org/t/ui-breaks-when-letter-avatar-images-dont-load/36674/1 "2015-12-14T05:40:04Z")

</div>

When a user’s own letter avatar doesn’t load, discourse doesn’t show any placeholder for it. That means the user’s “profile/messages/preferences” menu at the top-right **completely disappears** , preventing them access to many features. Typing a **P** will bring it up, but first-time users won’t even know anything is missing, and looking-up those keyboard shortcuts is too much to expect of users in general. This problem also shows up elsewhere, like making it impossible to show which users have “Liked” a post, as the elements collapse, preventing mouse-over.

I _suspect_ that this could be most quickly and easily fixed by merely filling-out the alt= field for the avatar images, instead of leaving them all null. Including a small screenshot made in the sandbox, for those who haven’t seen this effect first-hand:

 ![](https://global.discourse-cdn.com/meta/original/3X/9/d/9d26bcaa562ee606c6a5804afcd593d83da63b46.png)

I’d like to sidestep all the reasons why avatars don’t always load (as a dozen other topics have), and focus on ensuring the UI is more robust to that eventuality. Whether it’s network issues, CloudFlare issues, local caching issues, or even the user choosing to disable image loading in the browser. I don’t believe image load failures should break the functionality of a website.

---

_[View the full topic](https://meta.discourse.org/t/ui-breaks-when-letter-avatar-images-dont-load/36674)._
