Use old style loading indicator when publishing

This change required adding back code that was removed by the WMF.
It will be more readable to me if the comments will be in separated lines (instead of being in the same line as the commented code/text).