Hacker News new | ask | show | jobs
by sfeng 4349 days ago
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()