Prevent flickering of the loading icon.