substack/http-browserify — pull request #76 by kirbysayshi (2014-12-11 00:11:11+00:00)
Title: defer detection of XHR

Ran into an issue with a tape-like pattern:

```
$ browserify-like-bundler tests/index.js | node
```

This package was detecting if the window object was present before my jsdom shim could execute (and therefore expose window/document globals). I deferred the execution of the detection until the first call to compensate.