delay opening of XHR object until next tick