this question seems to be more difficult than I thought. I am creating an app, which needs to load different frameworks for different pages. Loading all at once would be an overkill and too expensive in regards of resources. So I basically thought about "unloading" a script / framework. I learned that this is not working as easy as just removing the script tag from the browser, apparently there are some events bound and functions are still available, etc. which are lasting after the script removal. My question is what "features" more than events and functions actually can be loaded with the script and is there an already existing solution to clean them all up somehow?
I am very excited for an answer.
Kind regards, Marius