Magento 2.1.2 bundled with jQuery 1.11. How it possible to replace it with jQuery 2.1?

  • 1
    Why u want to replace? By replacing JS it will cause so many issues. – Ankit Shah Dec 14 '16 at 2:29
  • When I will add FB.init that time need to add function with ajax post, so I need to add other jquery. and comes issue so let me figure out this. – sarvesh Dineshkumar Patel Jul 11 '19 at 7:53

Original file path is here


You should overwrite in your theme so path will be


How to override JS file

Extending/overriding JS in Magento 2

  • 3
    This doesn't work for version 2.2.4 – Frank Groot Jun 18 '18 at 7:29
  • 1
    hi @Ankit, can you update the full code, with require js? – jafar pinjar Oct 30 '19 at 11:05
  • 1
    Does not work. Tried in 2.3 – Black Jan 8 at 15:52

Change the jquey file in lib folder.


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.