The problem is the following. We have lots of ajax call via $.ajax function. Now I would like to add some loader indicator that will show up when ajax call started and disappear when ajax call finishes. Is there a way to extend jquery's $.ajax function with this kind of behavior.
Of course it is always possible to search for all $.ajax in code and add necessary behavior but I feel somehow lazy to do this.