Can I use already included jQuery with Shopify Algolia app?


I’ve just started using the shopify app on one of my sites. However it’s including jQuery on it’s own even if its already included. If I remove Algolias jQuery include then I get undefined issues throughout the site.

Is there anything I can amend to tell algolia to use the currently installed jQuery?



We do indeed include jQuery to be sure that it’s included and that we won’t run into compatibility issues.
You can remove it, there is just one small line to change in this case in algolia_init.js.liquid.

// Replace
algolia.$ = algolia.jQuery = $.noConflict(true);
// by
algolia.$ = algolia.jQuery = $;

Thank you so much! Really appreciate your time!


1 Like