visionmedia/superagent — pull request #394 by basti1302 (2014-06-06 08:35:10+00:00)
Title: add option for synchronous requests to client lib

This would add an option to the client lib to switch the XHR to synchronous behaviour.

I just needed this for a client that switched from some other xhr lib to the superagent lib but had one weird feature where synchronous was definitely needed.

I do understand that synchronous ajax requests are usually a total no-go and you probably might not want to have this in superagent at all.

If you, against all odds, consider to merge this one I'd be happy to provide more changes to round this up (docs, tests).

Might be related to #34, but the discussion there is about node, I believe.