Disable plugin scripts on landing page load

Hi everyone,

Is there any way to disable script of a specific plugin when loading home/landing page of the app?

The reason being that I can see scripts of several plugins running when landing page is loaded via the home URL, even though the plugins have no usage on landing page.

Some of the plugins take considerably greater time as compared to the rest and therefore, the overall landing page load gets delayed by quite some time.

So can’t we prevent such scripts from running upon page load if we know exactly which script/bundle/js file is causing delays?

Any help in this regard would be highly appreciated.

This is a huge problem for many plugins that use shared ressources instead of settings ressources on the elements. Ask plugin dev to move the plugins shared ressources to the element. In most case, this is absolutely possible (and should have been done).

Another option is to create fork of the plugin if free or create your own to avoid this.

1 Like