• Resolved wpmhweb

    (@wppit)


    When enabling minify on the website, logged in users will see an error “Uncaught ReferenceError: jQuery is not defined” at notes-common-v2.js and for admin-bar-v2.js. The error only happens for logged in users, users not logged into wordpress won’t see this error.
    I disable minify for logged users, and the error doesn’t appear, but it want to resolve this issue. What’s causing this problem? What can I do to fix it?
    This error is only affecting homepage, tags, and categories.

    Thanks,

    • This topic was modified 4 years ago by wpmhweb.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @wppit

    “Uncaught ReferenceError: jQuery is not defined” means that Jquery is not loaded first and it needs to be loaded first.
    So you can either exclude those files from minifying or go with manual minify and add the js files manually and in order to avoid errors.
    Thanks!

    Thread Starter wpmhweb

    (@wppit)

    I’ve read that other minifying plugins are having a similar problem, and on a post, I found that excluding the backbone.min.js, underscore.min.js fix the problem. However, I’m using the manual option of W3TC and I’m not listing these js files, so does this means that they’re automatically excluded?

    By the way, these are files that only load when an user is logged in, not when they’re logged out.

    W3TC doesn’t have an option to minify js differently from logged in users, right? I mean aside from the disable minify option for logged in users.

    • This reply was modified 4 years ago by wpmhweb.

    Tell me a solution to this problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to fix notes-common-v2.js and for admin-bar-v2.js error with minify’ is closed to new replies.