Support » Plugin: Autoptimize » How to find out which js to exclude

  • Resolved boddhid

    (@boddhid)


    Hello all,
    we use the Modern Events Calendar (https://webnus.net/) and we can not get the search form on the frontend to work with the JS-Code optimization of AO.

    We did the following:
    1. excluded from JS-Code optimization: wp-content/plugins/modern-events-calendar/*
    2. unticked “minify excluded files”

    Where to search next for what goes wrong?

    Thanks a lot!
    Hendrik

    Btw we switched of JS-Code optimization for the search box to work.

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

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

    (@optimizingmatters)

    wp-content/plugins/modern-events-calendar/*

    remove the *, you should have just

    wp-content/plugins/modern-events-calendar/

    If not OK at that point, have a look at the browser console for JS errors?

    boddhid

    (@boddhid)

    Thanks a lot! Several JS errors occur, when we ‘Aggregate JS-files?’ is ticked.
    We reproduced the issue on our test-environment:
    http://test.raspberryhill.eu/naechste-paarseminare/

    The M.E. Calendar has close to 50 JS and JSON files in different subdirs, but when those are all excluded from aggregation by excluding wp-content/plugins/modern-events-calendar/ then what could be the cause?

    Any help is welcome. I’m going to get a coffee…

    • This reply was modified 2 months ago by boddhid.
    • This reply was modified 2 months ago by boddhid.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Given the multitude of “jQuery is not defined” errors, you’ll at least have to (re-)exclude js/jquery/jquery.js boddhid 🙂

    boddhid

    (@boddhid)

    Thanks!! So, exclude JS-files until the error disappears 🙂
    Great, it works like a charm.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! 🙂

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