I have some images loading from offsite and have no control over their availability. I’ve found that under heavy load they are sometimes failing to load, but on a quick refresh they’ll show right up.
Is there a way to detect if images fail to load and then if so, evoke a reload on the img src until it loads? If so, could you please provide an example?
Here something I compiled which might help. I couldn’t manage to do testing of this please let me know if you are having any issues.
The above solution is compiled from two different solutions commenced by @user113716 and @travis