This is no argument for not improving the status quo, especially if the work required to do that is rather minimal. You can always reduce the what-ifs and provide sensible fallbacks (where they are possible). Browser will show the fallback fonts if the Web Fonts fail or are slow to load (some browsers are better at this than others, e.g. Safari is the worst). Images will show placeholders (the alt text or broken image icon) and these placeholders will even have the right dimensions of you specify width & height. I’m all for making Discourse available (in a limited way) even if the JS fails to load, but that’s quite some way down the road (if it will ever happen). But back to the issue at hand.
Especially the Avatar service is an issue since you’ll need to load a ressource from a remote centralized server. I’ve encoutered OPs issue before as well (did not realize at first that the avatar was missing) most likely because the avatar server was under heavy load or the route to it was congested – which happens even if the service is heavily CDN’ed.
So here’s what I’d like to see:
- Specify
altas much as possible (and sensibly). This is also good for accessibility. Note that an empty description (i.e.alt="") is valid and recommended for elements that do not carry a particular meaning (e.g. graphical elements or image replacement techniques). - Specify image dimensions as much as possible (and sensibly). Some may be set within the HTML, others can be specified in the CSS, e.g. if it concerns groups of images or the containers of images (rather than the images themselves).
- Long-term: Add the avatar service to the Docker container, i.e. make it self-hostable within the Discourse instance. Provide an option to use the self-hosted version or the centralized, remote one. This reduces reliance on another external host and also improves loading times through re-using the already-open connection.