The only other way I can think of doing it is manually by writing a "killme" function for every one of my class/functions but this is rather onerous.
This is personally what I do with every piece of loaded content, I also have addListeners() and removeListener() functions.
If there is another way then iām all ears ![]()