> > XHR is very different since it does not attempt to change state between
threads in a racey fashion.
> Are you sure? It changes DOM all the time, people does it in almost every
callback.
Racey here refers to implicit/preemption. See the following example which
blocks the browser permanently:
```
xhr=new XMLHttpRequest;
xhr.open('GET', 'https://cors-test.appspot.com/test');
xhr.send();
while (xhr.readyState !== 4) {}
```
On Wed, Nov 2, 2016 at 10:57 AM, Leo Dutra <[email protected]> wrote:
> > XHR is very different since it does not attempt to change state between
> threads in a racey fashion.
>
> Are you sure? It changes DOM all the time, people does it in almost every
> callback.
>
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss