• Logged-in users see these two errors:
    notes-common-v2.js?ver=3.4.1-201514:158 Uncaught ReferenceError: jQuery is not defined
    admin-bar-v2.js?ver=3.4.1-201514:2 Uncaught ReferenceError: _ is not defined

    If I enable “force JavaScript in head”, all users see this error:
    devicepx-jetpack.js?ver=201514:7 Uncaught TypeError: Cannot read property ‘style’ of null

    Enabling try/catch wrapping does not fix the problem.

    Site is https://www.climateinteractive.org/

    https://wordpress.org/plugins/autoptimize/

Viewing 3 replies - 1 through 3 (of 3 total)
  • It looks like either autoptimize or your cloudfront CDN minified jQuery into one file with your other javascript. I’ve never used this plugin, but if its anything like W3TC you should be able to exclude jQuery from autoptimize.

    Thread Starter Paul Schreiber

    (@paulschreiber)

    Cloudfront doesn’t do any unifying/minification — it just reproduces what’s on my server.

    Autoptimize does have an option to exclude jQuery from minification. I tried that, but it didn’t work — jQuery still got loaded too late.

    Plugin Author Frank Goossens

    (@futtta)

    you could either exclude jquery and underscore OR force in head and exclude devicepx-jetpack.

    hope this helps,
    frank

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

The topic ‘JS errors for logged-in users’ is closed to new replies.