Remove script feature
MurhafSousli opened this issue · comments
Murhaf Sousli commented
Hi, I want to destroy a script on component destroy, is it possible to remove a script after it is loaded?
Murat Çorlu commented
Removing script tag from document will not disable the code that we already injected. I don't know any way to really clean JS code from document after it's run once.
Murhaf Sousli commented
Yea, that's right, the script can be remove using event.target.remove()
but the problem is with cleaning up!