Multiple jQuery versions in my website

  • Posts: 45
  • Thank you received: 0
10 years 2 months ago #170906

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3

Dear Nicolas et al,

Reading the HTML source of my website, I found that multiple versions of jQuery are loaded by various components and modules. I hope that for Joomla 3.x sites, this is no longer necessary. For my template I already replaced the call to include some local version of jQuery by the more generic

JHtml::_('bootstrap.framework');
I was about to do the same thing in hikashop helper, but then I learned (the hard way) that the hikashop version uses a hkjQuery object in several subsequent scripts.

Would you have any thoughts on replacing the hikashop hkjQuery by the bootstrap framework?

Thanks and regards, Paul

Last edit: 10 years 2 months ago by paulvanharen.

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
10 years 2 months ago #170911

Hi,

HikaShop uses the jQuery of Joomla.
hkjQuery is just a copy of the jQuery object of Joomla.
So there is nothing to replace.
We do that in order to avoid other extensions breaking our javascript because they replace the jQuery object of Joomla with their own jQuery, not compatible with the version of jQuery of Joomla.

To straigthen the jQuery use on your website, I would recommend to use the extension jQuery Easy :
extensions.joomla.org/extensions/core-en...jquery-scripts/18327

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum