diff --git a/core/js/jquery.avatar.js b/core/js/jquery.avatar.js
index 67dd10482fa71c665ff38c7e5cfd805aab7fcf65..958f0f9edd7fb86b4aa7a0a524c1f310f331bb00 100644
--- a/core/js/jquery.avatar.js
+++ b/core/js/jquery.avatar.js
@@ -129,6 +129,10 @@
 				setAvatarForUnknownUser($div);
 				$div.removeClass('icon-loading');
 			}
+
+			if(typeof callback === 'function') {
+				callback();
+			}
 		};
 
 		$div.addClass('icon-loading');