I have a client who is using SquareSpace, which upon Network inspection, uses a Single Page Application like structure, that is, when clicking a link it doesn't reload the whole page, instead it loads an HTML partial.
The client has a widget on the page from another third-party that uses document.readyState
to determine when it should fire, and due to how SquareSpace is loading partials, it never fires.
How can I observe the loading of partials in SquareSpace to modify this widget so it will run when I want it to? I know how to do this within a framework such as Angular, but I'm not sure of the SquareSpace architecture so if there is some reliable client-side way of watching network requests that would be appreciated.