Re:Show HN: A Javascript library to overcomplicate Five
by jgillich on Thursday July 17, 2014 @11:19AM
(#8047996)
Finally a way to escape callback hell. I think somebody should write a jQuery.ajax plugin that calls the function repeatedly until a request is finished.
[ Parent
| on HN ]
Re:Show HN: A Javascript library to overcomplicate Five
by sfeng on Thursday July 17, 2014 @11:42AM
(#8048131)
That actually wouldn't work, as the response from the request would never be processed while you were looping.
You can make synchronous requests already though:
req = new XMLHttpRequest
req.open("some/url", "GET", false);
req.send()