Support » Plugin: Search by Algolia – Instant & Relevant results » JavaScript Minification Errors

  • Resolved Rhand


    When I run Algolia search with WP Rocket and JavaScript minified by WP Rocket I get:

    Uncaught ReferenceError: algoliasearch is not defined
        at HTMLDocument.<anonymous> ((index):94)
        at i (a9b476399a1ace75e81cb940be005dd2.js:2)
        at Object.fireWith [as resolveWith] (a9b476399a1ace75e81cb940be005dd2.js:2)
        at Function.ready (a9b476399a1ace75e81cb940be005dd2.js:2)
        at HTMLDocument.K (a9b476399a1ace75e81cb940be005dd2.js:2)
    (anonymous) @ (index):94
    i @ a9b476399a1ace75e81cb940be005dd2.js:2
    fireWith @ a9b476399a1ace75e81cb940be005dd2.js:2
    ready @ a9b476399a1ace75e81cb940be005dd2.js:2
    K @ a9b476399a1ace75e81cb940be005dd2.js:2

    and then only the header loads.

    • This topic was modified 1 year, 9 months ago by  Rhand.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Turned off JS Minification for now as I need the site to run. Perhaps I will see if I can exclude Algolia’s JS somehow and make this work. Would prefer to include it though.

    Plugin Contributor rayrutjes


    Hi @rhand,

    Indeed there is a known issue with WP rocket.

    The issue lies in disabling inlining of JS.

    We hope to be able to fix this in the near future.
    If you find anything let us know.


    Well see Using another exclusion rule
    recommended by WP Rocket it seems to be working. Again would have preferred your plugin not to use inline JS or inline CSS that would not clash. But this works

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JavaScript Minification Errors’ is closed to new replies.