I go through http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/js-bundling.html document to optimize JS. But bundle.js is not generating. Only file.min.js is there.

Also third party extension not merged.

enter image description here

  • check if the third party extension javascript files are loading dynamically or after page load. If this happens, I don't think they will merge. Feb 8 '18 at 10:26

Merge compiles all your Javascript files in to one big one so multiple requests aren't made for scripts you could get in one go. Minify removes any unnecessary characters in the document without changing its functionality, for example removing line breaks where unnecessary for it to work etc.

  • I would also add but not as part of my answer that a typical indication of whether or not merge is on is whether or not one of the names of the JS files that's been loaded looks like it's gone through SHA256 15 times
    – John
    Feb 8 '18 at 10:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.