Hi @laurentfrom47
Hard to say for certain what may be pulling it in, but it’s possible other plugins or maybe the active theme is still queuing up jQuery for loading.
If you can provide a link to the site, I can review some things and see if there’s spots we maybe missed with our extraction.
Hi,
It is a local test website but when i disable your plugin jquery is not loaded on the page ?
Thanks.
Hmm.
Checking on some things regarding that.
In terms of the changelog item, that was largely related to the two template files, autocomplete.php and instantsearch.php, not directly relying on jQuery for all of it’s javascript code.
Checking on why it’s still getting enqueued though, as I was able to recreate
Hello again,
I did some testing and determined that the libraries are still getting loaded because we have a dependency for wp.template() in the template files, and that functionality is provided by the wp-util.js file, which needs jQuery.
So, we didn’t get it as clean as we originally thought, but also this puts us in a small bind because removing usage of wp.template() would be considered a pretty big breaking change. It’s also always possible that other plugins/themes make use of wp-util.js and it all gets loaded in the end anyway.
That said though, it’s good to know why we’re seeing it here in this specific case. It will be possible that individual site owners could remove the usage of wp.template() and utilize the Algolia native template spots, and WebDevStudios should consider some documentation around that too.
Based on current work so far, once we get things updated for Autocomplete 1.x, we’ll be abandoning the wp.template usage which is the only thread keeping jQuery enqueued still.
We don’t have a for sure release date for that upgrade, as it is a huge one.
Hi, sorry for the delay in responding, I missed it.
It’s good to know why jquery is loaded.
It will be great when you update the plugin to not load it anymore.
Thank you.