diegoles / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

goog.net.XhrIo is alway asynchronous #451

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
For the moment `goog.net.XhrIo` object is always async (see line 472 
goog/net/xhrio.js: this.xhr_.open(method, url, true);  // Always async!").

It would be really useful to be able to switch between sync/async modes (or at 
least be able to choose one on object creation with a constructor argument, 
i.e. `opt_async`).

Original issue reported on code.google.com by gitul...@gmail.com on 13 Apr 2012 at 5:13

GoogleCodeExporter commented 8 years ago
This was a deliberate design choice. Synchronous XHRs are pretty badly broken 
on all browsers--they have all sorts of gotchas and bugs, and are a pretty 
terrible user experience. So we decided not to support this case. Sorry.

Original comment by Nicholas.J.Santos on 13 Apr 2012 at 5:56