on that same topic... given this is sync I would do the following instead:

```js
xhr.open(...);
xhr.send();

[contents of xhr.onload]
```