Open moeshin opened 3 years ago
@moeshin Thanks for the helpful advice. When I created the library I thought of implementing this using documentgetElementsByTagNameScript, but at the time it seemed to me that it would be better to create an event to detect route changes, as in the example:
document.addEventListener("pjax:complete", function() {
console.log("Event: pjax:complete", arguments);
});
I still intend to implement (it will be a feature that can be disabled). I will notify you shortly with the lib update.