Title: Uncaught ReferenceError: algoliaAutocomplete is not defined
Last modified: August 3, 2020

---

# Uncaught ReferenceError: algoliaAutocomplete is not defined

 *  Resolved [matchlessweb](https://wordpress.org/support/users/matchlessweb/)
 * (@matchlessweb)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-algoliaautocomplete-is-not-defined/)
 * Hey there, at one point this plugin was working on my site, but now I’m having
   issues related to this console error:
 *     ```
       Uncaught ReferenceError: algoliaAutocomplete is not defined
           at Object.<anonymous> ((index):376)
           at Function.each (jquery.js:2)
           at HTMLDocument.<anonymous> ((index):373)
           at i (jquery.js:2)
           at Object.fireWith [as resolveWith] (jquery.js:2)
           at Function.ready (jquery.js:2)
           at HTMLDocument.J (jquery.js:2)
       ```
   
 * I originally thought this error might only appear on pages where there’s not 
   a search bar to be found (such as on my homepage: [https://matchlessweb.com/](https://matchlessweb.com/)).
   But now I see this console error is also appearing on pages where there is an
   active sidebar widget. Autocomplete is not functioning now. Any idea what might
   be happening? Love this plugin by the way!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-referenceerror-algoliaautocomplete-is-not-defined%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Richard Aber](https://wordpress.org/support/users/richaber/)
 * (@richaber)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-algoliaautocomplete-is-not-defined/#post-13204201)
 * Howdy [@matchlessweb](https://wordpress.org/support/users/matchlessweb/),
 * I just visited the URL you referenced, and I’m not receiving the described error.
   
   Is it possible that this is cache related (Cloudflare, CDN, browser)?
 *  Thread Starter [matchlessweb](https://wordpress.org/support/users/matchlessweb/)
 * (@matchlessweb)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-algoliaautocomplete-is-not-defined/#post-13204693)
 * Hey Richard, thanks for the reply. I just found the issue and it had nothing 
   to do with WP Search with Algolia.
 * In my attempts to optimize my site for fast page loads, I forgot that I had attempted
   to delay the execution of all Javascript associated with WP Search with Algolia
   by using the “Flying Scripts” plugin ([https://wordpress.org/plugins/flying-scripts/](https://wordpress.org/plugins/flying-scripts/)).
   It seems delaying the execution of this plugin’s JS breaks the autocomplete functionality
   of WP Search with Algolia, which totally makes sense. I reversed my Flying Scripts
   configuration for this plugin, and normal functionality has returned so all is
   well now.
 * I had originally attempted delaying the JS execution in hopes pages using the
   search widget wouldn’t be slowed down by having to parse that JS on page load.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 10 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-algoliaautocomplete-is-not-defined/#post-13204846)
 * Good sleuthing, and good to know it wasn’t specific for something recently released
   here.
 * Let us know if you need anything else.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Uncaught ReferenceError: algoliaAutocomplete is not defined’ is closed
to new replies.

 * ![](https://ps.w.org/wp-search-with-algolia/assets/icon-256x256.png?rev=2894668)
 * [WP Search with Algolia](https://wordpress.org/plugins/wp-search-with-algolia/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-search-with-algolia/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-search-with-algolia/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-search-with-algolia/reviews/)

## Tags

 * [Console error](https://wordpress.org/support/topic-tag/console-error/)

 * 3 replies
 * 3 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-algoliaautocomplete-is-not-defined/#post-13204846)
 * Status: resolved