I don't know about others but saying that XHR requests are less casual or more special seems to me as very subjective. It's just about requiring different response format. Also it is very relative which condition branch is the main in general so I'm not really a fan of negating natural conditions to swap branches. I'd be happier if you change this at least in this particular commit :-)