wp-search-with-algolia icon indicating copy to clipboard operation
wp-search-with-algolia copied to clipboard

jQuery still getting enqueued with InstantSearch

Open tw2113 opened this issue 3 years ago • 4 comments

https://wordpress.org/support/topic/dont-load-jquery-2/

jQuery and jQuery Migrate still show up

Screen Shot 2022-11-01 at 12 35 00 PM

tw2113 avatar Nov 01 '22 17:11 tw2113

Turns out this is because we rely on /wp-includes/js/wp-util.js which has its own dependency on jQuery.

This file provides the wp.template() functions that we use to help with rendering some of the autocomplete and instantsearch information.

tw2113 avatar Nov 01 '22 18:11 tw2113

This may be going away as an issue once Autocomplete 1.x gets handled, since templating has changed a lot between versions.

tw2113 avatar Nov 21 '22 17:11 tw2113

This will also be getting able to be forced with InstantSearch 5.x which is removing older legacy templating methods, which we still utilize.

tw2113 avatar Apr 26 '23 23:04 tw2113