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 13 replies - 16 through 28 (of 28 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Ah ok can you tell me how to view only on onload?

    create a (free) account, log in and you’ll see several options, out of which fully loaded vs onload is one πŸ™‚

    i am getting Defer parsing of JavaScript I have async installed Async JavaScript just wondering why the error is still there?

    async JS can only defer linked JS that is in your HTML, if you have any JS that is triggered differently (e.g. an iframe or inline JS) then AsyncJS cannot async that :-/

    Hi thanks for the reply it is working much better now your plugin is ace! i only get one error now, Make fewer HTTP requests
    This page has 22 external Javascript scripts. Try combining them into one.

    This page has 5 external stylesheets. Try combining them into one.
    Does your plugin combine these files?

    Thanks again

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    as long as the JS is async/ deferred and the CSS is preloaded that can be safely ignored, but I see WPFC’s minify is still active and that seems to be messing with the code generated by AO (as in removing the rel=preload, making the CSS render-blocking) cars111?

    Strange I just looked at wpfc and the 2 checkboxes for minify HTML and CSS are unchecked the only ones checked are Combine Css and Combine Js. Do these need to be unchecked as well?

    Thanks again really appreciated.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Apparantly (didn’t know that “combine” was available in the free WPFC version). When looking at the HTML source of a page on your site you should not see any reference to cache/wpfc-minified any more.

    i have searched the source code and no cache/wpfc-minified is showing up only script type=”text/javascript”>var wpfc_ajaxurl = “https://www.bladerunnermallorca.com/wp-admin/admin-ajax.php”;</script>

    Gtmetrix is giving a score of F for combining files which is strange?

    Is there i setting i can use in the plugin to fix this issue?

    here are screenshots

    https://imgur.com/a/NIu3mV0

    Thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Still seeing wpfc-minified when going to your homepage @cars111 ;

    maybe you need to clear WPFC’s cache, because when adding a random querystring to the URL to disable the page cache, wpfc-minified is not in the HTML source any more.

    Gtmetrix is giving a score of F for combining files which is strange?

    that’s because of your Javascript exclusions, specifically the /plugins one which exclude all JS by all plugins from being optimized.

    Hi I have disabled wpfc and the page score is now an A score i have caching on my server so it seems to be working well. Where is the javascript exclusions set?

    Thanks, for all your help

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    settings -> autoptimize -> make sure “advanced settings” are visible (click on button near the top right corner if not).

    Thanks should I remove the plugins one? The last developer added it, thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    wp fastest cache you mean? if it is disabled now and you don’t plan on using it again and if you’re sure you have page caching elsewhere you indeed can do so πŸ™‚

    Hi sorry I meant:

    Gtmetrix is giving a score of F for combining files which is strange?

    that’s because of your Javascript exclusions, specifically the /plugins one which exclude all JS by all plugins from being optimized.

    should I remove the /plugins exclusion?

    Thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    should I remove the /plugins exclusion?

    ah πŸ™‚

    yes, you should. and then test to make sure nothing breaks when all JS is optimized, because I guess you added the (too broad an) exclusion because something was broken?

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