Support » Plugin: SG Optimizer » SG Update Version 5.3.4 breaks Defer Render-blocking JS +Elementor

  • Resolved clickingclients

    (@clickingclients)


    The latest update to your SG plugin Version 5.3.4 breaks JS.

    SETTINGS: “SG plugin >> FrontEnd Optimization >> Defer Render-blocking JS” which is messing things up. All is OK when I turn that off.
    We also have Cloudfare running. Clearing both caches doesn’t fix it.

    There is no problem on our staging site, only the Live site, AND only a problem for logged in admin.

    SYMPTOMS:: Nav Bar is broken (and other aspects) and we are getting broken JS relating to /wp-content/plugins/elementor/assets/js/frontend.min.js

    I’ve disabled “Elementor” plugin and the nav menu works as before (however other Elementor functionality is then missing).

    However, disabling the setting at the “SETTINGS” above resolves the issue with Elementor enabled.

    Can you please provide a way to resolve this issue? I’d like to be able to have “Defer Render-blocking JS” switched on.

    ERROR:
    frontend.min.js:2 Uncaught TypeError: Cannot read property ‘handlers’ of undefined
    at Frontend.get (frontend.min.js:2)
    at Object.<anonymous> (frontend.min.js:2)
    at n (frontend.min.js:2)
    at Object.<anonymous> (frontend.min.js:2)
    at n (frontend.min.js:2)
    at new e.exports (frontend.min.js:2)
    at Function.<anonymous> (frontend.min.js:2)
    at Function.each (jquery.js:1)
    at s (frontend.min.js:2)
    at dispatch (jquery.js:1)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Please, update to the latest plugin version, we’ve excluded those.

    Thank you.
    I can confirm it has fixed it.
    Awesomely quick response! Thank you.

    I am getting a similar error. Have SG Optimizer 5.3.8 installed. When I have “Defer Render-blocking JS” turned on, I get the error below. Any advice on how to use Defer Render-blocking JS with Elementor?

    jQuery is not defined
    /wp-content/plugins/elementor/assets/js/frontend-modules.min.js

    frontend-modules.min.js:2 Uncaught ReferenceError: jQuery is not defined
    at Function.u.extend (frontend-modules.min.js:2)
    at Object.<anonymous> (frontend-modules.min.js:2)
    at __webpack_require__ (frontend-modules.min.js:2)
    at Object.<anonymous> (frontend-modules.min.js:2)
    at __webpack_require__ (frontend-modules.min.js:2)
    at Object.<anonymous> (frontend-modules.min.js:2)
    at __webpack_require__ (frontend-modules.min.js:2)
    at frontend-modules.min.js:2
    at frontend-modules.min.js:2

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.