0

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)

asked Jan 9, 2024 at 8:35

1 Answer 1

3

You should look into Magepack. Its a very nice tool and free as well.

https://github.com/magesuite/magepack

answered Jan 10, 2024 at 22:14
1
  • Really interesting extension. I will take a look at them as soon as possible. Thanks for the reply ;) Commented Jan 22, 2024 at 11:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.