(Andrejus Baranovskis) When we call backend REST service from JavaScript – call by default is executed async. This means it will not wait until response from backend is received, but will continue executing code. This is expected and desired functionality in most of the cases.
