I agree with @mstriemer. and why block on xhr to finish?