[xhr] Synchronous XMLHttpRequest outside of workers deprecation is not a good idea. (#60)

In _most_ cases, I agree that synchronous requests should be avoided.  I fully understand why they should be avoided.  I strongly _disagree_ with the decision to deprecate them.  We are talking about programmers and tools here, not children and knives.

In some cases, synchronous requests are a life saver:  Let's say I have a 3rd party component, like jQueryUI datepicker, and there is a user-override-able callback for a feature of the control (like getting the current time).  In this case, we'll get the time from the server with an ajax request (since we can't assume the clock on the client side is correct).  

If that request _has_ to be asynchronous, how do I keep the rest of the 3rd party code from merrily chugging away before I get the date back from the server?  Continuations aren't much help here (unless I want to wrap the remainder of each callback-calling function in the 3rd party library as a function passed to a continuation).


---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/xhr/issues/60

Received on Wednesday, 16 March 2016 23:32:00 UTC