• Resolved espressotrans

    (@espressotrans)


    Hi there, I love Autoptimise and I would like to use it. However, when I activate the java script optimisation, both the reviews carusel and the 3 blog posts at the bottom break.

    I have tried to follow all instructions found on the FAQ page but nothing….The only thing I have’t tried is exclude the 2 script but I don’t know how to find them

    Is there anyone that could help me?

    Thanks,
    Dan

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

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

    (@optimizingmatters)

    you don’t seem to have autoptimize active now Dan; your CSS is minified with another tool?

    I have the same problem. After activating the javascript optimization my plugins stopped working. I tried to disable all options and the plugin itself, but the problem remains and I can not restore the page to its initial state.

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

    (@optimizingmatters)

    @froscinsky; I looked at your site and Autoptimize is not active any more so any problem is unrelated to AO. But I indeed see several JS-errors, which you’ll need to solve before thinking about optimization. Once you’re there, have a look at AO’s FAQ for troubleshooting tips (every problem is fixable, given the right configuration) ??

    Thread Starter espressotrans

    (@espressotrans)

    Hi,

    I have just activated it. Please clear cache and have a look at what happens at the bottom (blog) and the purple line (where the reviews should be scrolling).

    Thanks,
    Dan

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, so I see this error on the browser console;

    11:52:02.188 TypeError: window.Parsley is undefined 1 autoptimize_9e533b49f9c9af94672562b516ece7fd.js:25:20357

    so can you try excluding plugins/caldera-forms/assets/build/js/parsley.min.js or even plugins/caldera-forms/ to AO’s comma-separated JS optimization exclusions?

    frank

    Thread Starter espressotrans

    (@espressotrans)

    Just added it:

    seal.js, js/jquery/jquery.js, plugins/caldera-forms/

    and cleared cache…the problem seems still to be there.

    Dan

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’ll have to clear your (page) cache, seems to work OK when busting the page cache like this https://www.espressotranslations.com/?qdsfqs=qsdfq

    Thread Starter espressotrans

    (@espressotrans)

    Yes it seems to work now ??

    Thanks a lot for your help! Will let you know if I have any other issue.

    Best,
    Dan

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    great, have a nice day Dan! ??

    I’m the author of Caldera Forms. I’m glad you got this sorted, but I wanted to jump in with a note.

    There are often problems when our already minified JavaScript is minified again. That is why we have the caldera_forms_render_assets_minify filter. It prevents JavaScript and CSS from being loaded minified and combined by Caldera Forms. If that filter is used and returns false, an optimization plugin such as auto-optimize will get unminifed JS and CSS that it can then optimize accordingly.

    https://calderaforms.com/doc/caldera_forms_render_assets_minify/

    Here is pseudo-code for how this could be done automatically. I don’t have enough knowledge of Auto-optimize to know how to finish it. But it seems like it would be a good thing to add to Auto-optimize to prevent this type of ticket – https://pastebin.com/Picrh1yZ

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    nice @shelob9, let’s cooperate on this! can you contact me via futtta-at-gmail-dot-com ?

    Sent.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Java Script Breaks after activating Autoptimise’ is closed to new replies.