A few weeks ago, a major rewrite of jQuery’s Ajax functionality landed in the jQuery GitHub repo. Thanks to Julian Aubourg, jQuery looks like it will get a feature that I’ve desperately wished it had ever since I started spending time with Dojo: function doAjax(debug) { var req = $.ajax({ url : 'foo.php', dataType : 'json', success : function(resp) { console.log(resp); } }); if (debug) { req.succe