@digish found the solution. Just delay the landing. var millisecondsToWait = 500; setTimeout(function () { doTheNeeded(); }, millisecondsToWait);