I'm working on a Squarespace site at the moment, trying to figure out how I can bind a function to their AjaxLoader without much success.
Here is a demo site that uses this loader
In my console I can see all the XHR requests being triggered when switching between pages, and I've tried using the debug to capture event listeners.
I thought something bound to "readystatechange" would work, but it only triggers on the initial page load.
$(window).on("readystatechange", doStuff);