I'm using $( document ).ajaxSend(function(event, jqxhr, settings) {}) to attach a generic function in my app whenever an ajax request is about to be send.
https://api.jquery.com/ajaxsend/
What is the Vanilla / XMLHttpRequest equivalent to this event?
Thanks.