2 ms·
Hmm, I wonder if there's any way to have an event on page:change that somehow _sends_ a document.ready trigger. So it will trigger all document.ready hooks, wit
by jrochkind1 14y ago
Hmm, I wonder if there's any way to have an event on page:change that somehow _sends_ a document.ready trigger. So it will trigger all document.ready hooks, without any changes to the code hooking into document.ready (which of course could come from third-party dependencies you can't easily change to use page:change themselves, and which may not want to be changed to have turbolinks-related code in them).
Might be easier if your code exclusively uses jquery's ready rather than native DOM onload or whatever.
But yeah, either way, this is a bunch of added logic that can go wrong, I'm not super enthused about it myself.