• Resolved JP FLY

    (@jpvanderlugt)


    With the new update 1.5.11, in webbrowser Chrome my discount coupons are not shown or active anymore. When I inspect the cart page I see this:

    Uncaught ReferenceError: loadCSS is not defined
    at HTMLDocument.<anonymous> (css-lazy-load.js:8)
    at i (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at Function.ready (jquery.js:2)
    at HTMLDocument.K (jquery.js:2)

    This caused by /wp-disable/js/css-lazyload.js

    I deactivated and activated my cache plugin, but this does not help.
    When I install the old version of the plugin 1.4.3 the error is gone and the coupon is visible again.

    Is this due to a new minification script in the new update? How to solve this?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author hosting.io

    (@pigeonhut)

    This should be OK now, please let me know if its not fixed.

    Thread Starter JP FLY

    (@jpvanderlugt)

    I am sorry, with the new update from today the error is still visible in the webbrowser Chrome and my woocommerce coupons are not visible.

    This caused by /wp-disable/js/css-lazyload.js:

    css-lazy-load.js:8 Uncaught ReferenceError: loadCSS is not defined
    at HTMLDocument.<anonymous> (css-lazy-load.js:8)
    at i (wp-includes-js-jquery-jquery-1.12.4.js:2)
    at Object.fireWith [as resolveWith] (wp-includes-js-jquery-jquery-1.12.4.js:2)
    at Function.ready (wp-includes-js-jquery-jquery-1.12.4.js:2)
    at HTMLDocument.K (wp-includes-js-jquery-jquery-1.12.4.js:2)
    (anonymous) @ css-lazy-load.js:8
    i @ wp-includes-js-jquery-jquery-1.12.4.js:2
    fireWith @ wp-includes-js-jquery-jquery-1.12.4.js:2
    ready @ wp-includes-js-jquery-jquery-1.12.4.js:2
    K @ wp-includes-js-jquery-jquery-1.12.4.js:2

    This error is not shown in version 1.4.4 and earlier.

    Thanks for investigating this issue. I hope you solve it.

    JP

    Thread Starter JP FLY

    (@jpvanderlugt)

    After further testing, I can narrow down the issue:

    When I deactivate in the request settings the following:
    – minimize requests and load Google fonts asynchronous
    – minimize requests and load Font Awesome asynchronous

    then everything works fine!
    If one of these settings is activated, the error above is shown.

    JP

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘error with java script with woocommerce coupons’ is closed to new replies.