3 ms·
The comparison to sync XHR is apt – put it this way, if you could go back in time and prevent synchronous XHR from being a thing, wouldn't you?
by rich_harris 10y ago
The comparison to sync XHR is apt – put it this way, if you could go back in time and prevent synchronous XHR from being a thing, wouldn't you?
- thomasfoster96 10y agoYep, I probably would. However, the argument against allowing await in top level code doesn't make much sense if all of these bad side effects already exist.
- untog 10y agoThis would just increase the surface area of a bad side effect, though. Barely anyone uses sync XHR and the API is being phased out to the Fetch API - why would we encourage re-adding baggage like that?
- domenicd 10y agoSee elsewhere in this thread for why the comparison to sync XHR is very misleading.