That being said, I circled back around some solutions like $(document).ready, document.querySelector().addEventListener and MutationObserver. Every time I’m getting issues where I cannot do a generic implementation (since I don’t want to change HTML structure) keeping in mind performance and good coding practices.
I was wondering if any one of you guys already faced the same scenario. For those who didn’t, how would you solve this issue? What is the best approach of tracking lots and lots of events doing in the right way.
Let me know if you need any additional information.