Support » Plugin: Autoptimize » Uncaught ReferenceError

  • Hello,

    I’ve been using Autoptimize for a while without any problems. But 1-2 weeks ago WooCommerce wouldn’t load product images anymore. In the shop layout the image appears, but when you view single products no image is shown.
    I get the following console error:

    JQMIGRATE: Migrate is installed, version 1.4.1
    autoptimize_697d517
    .php:36 Uncaught ReferenceError: items_in_cart is not defined
        at HTMLDocument.<anonymous> (autoptimize_697d517
    .php:36)
        at i (jquery.js?ver=1.12.4:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
        at Function.ready (jquery.js?ver=1.12.4:2)
        at HTMLDocument.K (jquery.js?ver=1.12.4:2)

    Enabling the try-catch setting “fixes” this issue, but where does that ReferenceError come from?

Viewing 2 replies - 16 through 17 (of 17 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, I used Divi + AO CSS&JS optmization on the previous version of autoptimize.com without issues, so it’s not like it can’t work at all.

    that being said, there’s a very interesting problem with Divi+revslider breaking optimized CSS on Microsoft browsers (IE11 & Edge), maybe that’s what you’re referring to as well?

    frank

    Thread Starter Johan Yourstone

    (@jyourstone)

    Well it works, but there are graphical issues since I use some custom CSS as well. For instance, it will load the “original” site first and then apply the CSS after, which doesn’t look good. Plus some other glitches as well. I think that’s mostly because I use custom CSS though.

    If I decide to get to the bottom of the JS error I’ll reply here though.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Uncaught ReferenceError’ is closed to new replies.