The demo titled "On-purpose 404 ajax call" appears to be broken. When clicking on "Trigger global fail and change background to red", nothing visible happens that I can see.
Firebug does not allow tracing the fail event's callback, but it is executed. $loading does get the error class added, however $loading does not show.