• Resolved Rhand

    (@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 7 years, 3 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)
  • Thread Starter Rhand

    (@rhand)

    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

    (@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.

    Best,

    Thread Starter Rhand

    (@rhand)

    Well see https://imwz.io/wp-rocket-algolia-search-conflict/. Using another exclusion rule
    /wp-content/plugins/search-by-algolia-instant-relevant-results/(.*).js
    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.