I am using two versions of jQuery. The code of a meme generator I am using uses jQuery version 1.7.1. The version of jQuery I am using with bootstrap is 2.x The issue is that after I add some code to trigger download after button click it does not work. If I include just my version that is 2.x meme generator stops working. If i include just 1.7.1 the download button event stops listening. How should I solve this issue?
Asked
Active
Viewed 50 times
0
-
2I would suggest patching the meme generator to work with newer versions of jQuery. Using two versions of jQuery at the same time is a bad idea. – JLRishe Jan 24 '15 at 16:47
-
What does patching exactly mean here? How do I know what in the code is jQuery specific there? – Dinesh Jan 24 '15 at 16:48
-
It would generally mean debugging the code to find which parts are producing errors or failing to work, and manually updating them. – JLRishe Jan 24 '15 at 16:50
-
Firstly try jQuery migrate: http://blog.jquery.com/2013/05/08/jquery-migrate-1-2-1-released/ – A. Wolff Jan 24 '15 at 16:55
1 Answers
2
You can use no conflict mode, see this question for some details. If possible I would try to use versions which use the same jQuery though, as using two versions in the same page adds a lot of bloat and potential bugs.

Community
- 1
- 1

James Waddington
- 2,894
- 2
- 15
- 24