Stuck in an endless loop

After submitting a post or after editing post when clicking on the SAVE button the animation with the turning circle is endlessly visible even when the post has been saved already.

Few times we get this question, here's a answer for it.