Hey there – sorry for the absence on email – as you probably guessed I have been super busy with this release.
I’ve tested the above code various times now in different setups and all seemed to be working ok.
The only thing I notice on the above that you may be doing wrong is you are not wrapping your jQuery in ready events or a function.
Try changing above to:
<script type="text/javascript">
(function ( $ ) {
"use strict";
$(function () {
$(document).on("sf:ajaxstart", ".searchandfilter", function(){console.log("ajax start");});
$(document).on("sf:ajaxfinish", ".searchandfilter", function(){console.log("ajax complete"); document.write("<h1>hi all!</h1>");});
$(document).on("sf:init", ".searchandfilter", function(){console.log("S&F JS initialised");});
});
}(jQuery));
</script>
Let me know
Thanks