When your website contains a lot of AJAX requests using jQuery template and you want to add a global event at the start or finish of the AJAX request, e.g. add a spinning icon, or handle all AJAX errors in a particular fashion.
The jQuery library provides multiple events for ajax event handlers. This article will focus on ajaxStart and ajaxError.


