How to not load CSS of extension with no active plugin?

My extension-1 is enabled. but its plugin autoStart is set to false and it will be activated through extension-2’s plugin with app.activatePlugin("ext-1-plugin-id") method on command.

I’ve checked this issue: CSS are loaded even for disabled extension · Issue #11728 · jupyterlab/jupyterlab · GitHub. But it doesn’t answer my question.

If the plugin of extension-1 is not active then its styles in base.css should not be loaded in jupyterlab. How can I achieve it?

Or can I disable/enable entire extension-1 from extension-2’s plugin on command?