• Resolved sur1337

    (@sur1337)


    I just started to use Elementor.
    But somehow as long as the Section “Optimize JavaScript” is activated – the animated Widgets of Elementor won’t work.

    These JavaScrips are causing the problem ( shown in the DevConsole)
    backbone.marionette.js
    backbone.radio.min.js
    dialog.min.js
    common.min.js
    waypoints.min.js
    frontend.min.js

    Solution’s i’ve tried:
    – Turning On and Off every Setting in “Optimize JavaScript”
    – Excluding the JavaScrips above
    – Excluding the complete Elementor Folder ( wp-content/plugins/elementor/ )

    The page I need help with: [log in to see the link]

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

    (@optimizingmatters)

    some feedback;
    1. what are the exact errors being shown (you only listed the files)?
    2. make sure to disable WPFC’s minification when using AO, as using 2 plugins to minify can cause conflicts (you can keep on using WPFC as page cache off course)
    3. you might need to disable the minification of excluded javascript with below code snippet (this will be an option in the upcoming AO25);

    
    add_filter('autoptimize_filter_js_minify_excluded','__return_false');

    frank

    Thread Starter sur1337

    (@sur1337)

    Im so confused right now.
    I’ve tried it again and somehow it works now – i again disabled Try-Catch-Block and it works …
    If i enable “Try-Catch-Block” theres shown 1 Error:
    Uncaught SyntaxError: Unexpected end of input autoptimize_4d01405f2291989bddb766ce1be4da2e.js:23

    If i disable it, everything works fine.

    I doublechecked if my WPFC also minify’s my CSS and JS and indeed it did. But for now theres no difference between it being enabled or disabled ….

    But i would like to turn “Try-Catch-Block” on because without my page speed has only a score of 87 ( before it hat 95-97)

    • This reply was modified 7 years, 2 months ago by sur1337.
    • This reply was modified 7 years, 2 months ago by sur1337.
    • This reply was modified 7 years, 2 months ago by sur1337.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    they fact that your pagespeed score is better with try/catch on is pure luck, as try/catch is really only meant to be used in case of problems and is in fact known to slow your page’s performance down.

    regarding using WPFC minify & AO at the same time; it _can_ work, but it often results in weird, inconsistent issues. you have been warned 😉

    frank

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem with Elementor’ is closed to new replies.