loading animation, wait for the finish of typing.