cancel
Showing results for 
Search instead for 
Did you mean: 

How to Magento 2 Enable JavaScript Bundling

How to Magento 2 Enable JavaScript Bundling

I merged JS and CSS file (Stores -> Configuration -> Advanced -> Developer -> Javascript Settings) in production mode of magento2. Once i check via view source of the page, I can see the Javascript is merged. But Still it's show 75 external Javascript scripts via GTMatrix HTTP requests.

 

So How can i removed that 75 external javascript requests?

 

Thank you in advance!

1 REPLY 1

Re: How to Magento 2 Enable JavaScript Bundling

Hi @m2expdeveloper,

 

I guess (I should be able to see that report to provide a better idea) you have 2 options:

 

  1. Move to local those js files that you can use locally.
  2. Don't request those the external files you can't serve from local.

Maybe having 75 external js files isn't necessary at all? Is sounds like too many external js files.