I am trying to figure out how I can exclude some js files that Magento2 loads and makes it so heavy however without compromising the functionality of the site.
On my site with Magento2 I have a lot of js resources as well as third-party js resources.
My question is: How can I exclude all the js files that Magento2 loads with require? If not, is it possible to be able to do it in another way for Magento2 to have high performance?
Any suggestions or advice I would very much welcome.
Translated with DeepL.com (free version)