3 ms·
In the early days of ajax proliferation, I remember reading blog posts where people recommended synchronous XHR to keep your code linear, instead of trying to u
by Izkata 6y ago
In the early days of ajax proliferation, I remember reading blog posts where people recommended synchronous XHR to keep your code linear, instead of trying to understand callbacks, which would make the code too complicated.
- bradleybuda 6y agoObviously crazy advice that the current generation of Javascript programmers was wise to disregard. /s
- idreyn 6y agoWell, yeah. You have one thread to work with in the browser, and if you tie it up with a synchronous XHR your application freezes until the request finishes.