WordPress is loading all client resources of all plugins, not just the plugin of interest. It may make sense to load jqery globally but it makes no sense to load all other plugin’s Javascript in a back-end plugin.

Now, how can I prevent that WordPress is loading other plugin’s resources?

There’s wp_dequeue but I am not sure there is another callback at the end of loading all plugins, so I can clean it up alltogether myself. I am currently interested in filtering back-end plugin resources only.

ps: i am really stuck at this and I am actually surprised that it seems to be designed like this. Imagine 2+ different Dojo/CommonJS/Require-JS applications with their own configs and versions being loaded : trouble non stop, that’s what I am facing now.

thank you, any idea is welcome.

Read more here: How to prevent loading of all plugin’s resources?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: