Replaced all synchronous (local) XHR calls with async ones.