JSFiddle - React, Tailwind, and code Playground
JavaScript
var capturedAjax= $.ajax;
$.ajax=function myCustomAjax(options)
{
options.beforeSend=function()
{
alert('before send captured');
}
return capturedAjax(options);
}
jQuery.get('http://google.com');