• Resolved mrsven98

    (@mrsven98)


    Hi I do have this problem when I select “Aggregate JS-files?” it will mess with my forms, making them not work.

    I made some calculators and with this option selected it won’t calculate anymore. For now I deselected it, but would like to select it because it wil optimize my site more.

    Is there an other solution to counter this problem, or do I have to let this option deselected?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter mrsven98

    (@mrsven98)

    this is the webpage https://12-3dprint.com/3d-printing-cost-calculator/

    Exclude scripts from Autoptimize: /plugins/forminator/* does not work

    • This reply was modified 4 years, 8 months ago by mrsven98.
    Thread Starter mrsven98

    (@mrsven98)

    still need help with this please

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @mrsven98

    I hope you’re well today!

    Thank you for your question and I’m sorry for the delay on our end.

    I’m afraid that the very nature of such JS optimization (may it be Autoptimize or any other plugin of that kind) is that there’s always a risk that it will affect some features – as it changes slightly how scripts are included on site and that, as a consequence, may also affect the way they work.

    However, I don’t think the issue is happening because of Formiantor’s scripts being optimized. I’ve visited page in question and with Autoptimize currently enabled there are errors in browser consoler reporting that JQuery is not defined. That usually happens if JQuery is loaded in footer and/or deferred – so it loads “too late” for other scripts to make use of it.

    With Autoptimize disabled this error is gone and calculator works so I believe that it’s jQuery library itself that should be excluded from optimization. I believe that adding this to “Exclude scripts from Autoptimize” should help excluding it:

    js/jquery/jquery.js

    Additionally, you might also need to disable the “Minify excluded CSS and JS” files option in “Misc Options” section.

    Give it a try, please, and let me know if it worked.

    Best regards,
    Adam

    Thread Starter mrsven98

    (@mrsven98)

    Hi, no problem I am glad you responded. I adjusted the settings in autoptimize, unfortunately this broke the menu in header.

    The calculators are working. You can go directly to the page https://12-3dprint.com/operating-cost-calculator/

    I discussed this with the creators of the theme and they said it would make no sense to exclude jQuery. But the opposite is true because it made the forms work BUT it broke the menu in header.

    So is there an other solution to this? Maybe switching over to humming bird?

    given the Uncaught TypeError: elementorFrontend.hooks is undefined error on the browser console, you’ll probably have to also exclude plugins/elementor/assets/js/frontend mrsven98

    hope this helps,
    frank (ao dev)

    Thread Starter mrsven98

    (@mrsven98)

    Hi that solved it. Many thanks!!!!!!!!!!!!!!

    But I do have a jquery index problem
    https://ibb.co/VtgqCm5

    Who should I contact for this?

    not seeing that error mrsven98, maybe only for you as logged in administrator?

    Thread Starter mrsven98

    (@mrsven98)

    Hhmm well everything seems to work fine. Many thanks for this friendly and helpful support !!!

    graag gedaan ??

    Thread Starter mrsven98

    (@mrsven98)

    Dankjewel ??

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @mrsven98

    Hope you are doing well.

    It seems the issue is now fixed.

    I’m making this ticket are resolved, however, feel free to let us know if you need any further help.

    Best Regards
    Patrick Freitas

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Autoptimize JS optimizataion and forminator’ is closed to new replies.