Support » Plugin: Autoptimize » Errors with Elementor

  • Resolved cars111

    (@cars111)


    Hi i have installed your plugin and it is causing the sliders carousel and video background image not to load. i have checked the console and receive these errors.

    autoptimize_single_7fd5218e5a630701c28bbbd694a9b3ee.js?ver=5.1.1:1 Uncaught ReferenceError: php_data is not defined
    at autoptimize_single_7fd5218e5a630701c28bbbd694a9b3ee.js?ver=5.1.1:1
    (anonymous) @ autoptimize_single_7fd5218e5a630701c28bbbd694a9b3ee.js?ver=5.1.1:1
    frontend.min.js?ver=2.5.5:2 Uncaught ReferenceError: elementorFrontendConfig is not defined
    at new t (frontend.min.js?ver=2.5.5:2)
    at Object.181 (frontend.min.js?ver=2.5.5:2)
    at n (frontend.min.js?ver=2.5.5:2)
    at frontend.min.js?ver=2.5.5:2
    at frontend.min.js?ver=2.5.5:2

    I have tried to exclude plugin/elementor and pro on the js but same problem i have deactivated js and all is working again but page speed is bad on gtmetrix without it πŸ™ any help will be really appreciated.

    I had all boxes checked except try catch wrapping as cache wrapping made no changes

    Thanks

Viewing 15 replies - 1 through 15 (of 28 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    can you share your site’s URL @cars111 so I can have a look at the code ?

    https://www.bladerunnermallorca.com/

    should I turn back on JS?

    Thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    not yet πŸ™‚

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, so:
    1. make sure not to have WP Fastest Cache do minification when using Autoptimize. Disable all minification in WPFC.
    2. the error seems to indicate that you have “also aggregate inline JS” on, can you untick that option?
    3. if the problem persists you might have to stop Autoptimize from minifying excluded JS with the following code snippet (AO 25, of which you can download the beta here will have an option to do this);

    add_filter('autoptimize_filter_js_minify_excluded','__return_false');

    if you have all of the above and it still does not work then leave it like that so I can investigate “live” πŸ˜‰

    frank

    Ok thanks so much for your fast response. I have unchecked minify html and css on fastest cache should I also uncheck the combine settings? I have also unchecked Aggregate JS files? in your plugin and that removes all the other js options. i have checked in gmetrix and it has slowed then site down alot πŸ™ Hope you can help thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    -> WPFC: make sure minify JS is off as well
    -> “aggregate JS files” can be on, but “also aggregate inline JS” should be off

    OK I haven’t got the option to un check minify js as i am using the free fastest cache plugin, i have kept aggregate JS files on and unchecked also aggregate inline JS and the site is working but the page speed on gmetrix is like i haven’t activated your plugin, very slow.

    Thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    the site is working but the page speed on gmetrix is like i haven’t activated your plugin, very slow.

    well, I just did 2 quick tests;

    without AO (adding ?ao_noptimize=1 to the URL):
    onload time: 2,9s
    first paint: 0,6s

    with AO:
    onload time: 2,3s
    first paint: 403ms

    so I think AO is making quite some difference really πŸ™‚

    frank

    I am a bit puzzled when I had the previous settings with Also aggregate inline JS? i get a page score on gmetrix of B grade now its an F if it is not used.

    Thanks for the help really appreciate it

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well; the “score” for with vs without AO is C (pagespeed) & D (yslow) (see https://gtmetrix.com/reports/www.bladerunnermallorca.com/2FvvUndQ and https://gtmetrix.com/reports/www.bladerunnermallorca.com/mDk3lNNh), but more importantly when doing performance tuning focus the proof of only performance indicators that _really_ matter are those that measure your site’s speed in (tens of) seconds (first paint, onload time and even time to interactive and fully loaded if you want), because that’s what your users experience πŸ™‚

    I am getting this score when I test it really weird.

    https://gtmetrix.com/reports/www.bladerunnermallorca.com/IwNUtvCD

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    but that’s an old test, which still has wpfc doing JS minification?

    I cleared cache on wp fastest and on server and rerun test https://gtmetrix.com/reports/www.bladerunnermallorca.com/wBWFukGH
    same low score πŸ™

    Thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah, now i see; you’re doing a “fully loaded” test, whereas I’m doing an “onload” one πŸ™‚

    and fully loaded is 30M and 25s because it includes your hero-video, which also the reason for some of the recommendations you see in your “fully loaded”-test but not in my “onload”-one. nothing much AO or WPFC or … can do about that I’m afraid.

    Ah ok can you tell me how to view only on onload? also, i am getting Defer parsing of JavaScript I have async installed Async JavaScript just wondering why the error is still there?

    Thanks

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