Case for having xmlhttprequest available in sync
问题 One could simply encapsulate number of synchronous requests as an asynchronous request. The "func" parameter within the below code could for example contain multiple synchronous requests in order. This should give you more power over data contrasting the use of the DOM as a medium to act on the data. (Is there another way?, it has been a while since I used javaScript) function asyncModule(func) { "use strict"; var t, args; t = func.timeout === undefined ? 1 : func.timeout; args = Array