Is wp_deregister_script the best way to deal with unneeded plugins in a page?
I assume that you want to activate a plugin only when it is necessary. There is a better option to do this. You can activate the whole plugin upon a certain action. I have provided a example code that will help you achieve what you are looking for and if you have any more queries … Read more