I read a guide on how to enable jquery in magento correctly
- enable library
- enable conflict script
- go to $ jquery call and change it to jQuery
It is very simple with one extension. However, in my case, I installed 3 different extensions, and they all want to enable jQuery. Of course, I do not want to duplicate this library and name it 3 times. Firstly, I think that I can simply manually enable the jquery library in the very first line of the <head> and remove all jQuery inclusion in 3 extensions. But this will not work, usually only one of them works. If I allow all 3 extensions to include jquery, then all of them work. How can I do all jquery extensions in the store, while only including libray once?
Someone suggested that I should include all jquery dependent scripts at the top of the <head> , right? However, the problem is that I do not know how to organize scripts in Magento with the addJs or addItem . There are no parameters, either before or after, as in <block> ?
source share