• Resolved markkes

    (@markkes)


    Hi!

    Ive been cracking my brain over the problem that my exclude scripts in autoptimize aren’t working.. Ive added jquery.js comma separated and also tested it with the css part of exclusions. Now I finally stumbled on the following issue where people where discussing filter overrides, like autoptimize_filter_js_exclude. Eventually I found out a plugin i am using for popups has a filter overide. See:

    public function init() {
      add_filter('autoptimize_filter_js_exclude', [$this, 'excludeJavascript'], 10, 1);
      add_filter('autoptimize_filter_css_exclude', [$this, 'excludeCss'], 10, 1);
    }

    The plugin is Arscode Ninja Popups, i cant get you the source code since its availible on code canyon.

    I disabled this plugin and now the exclusions are working. Any chance I can fix this while still using the popup plugin? Since im already using this plugin (absolutly not happy with the plugin sinces its crap but its some work to replace it).

    Let me know.

    Mark

    • This topic was modified 4 years, 8 months ago by markkes.
    • This topic was modified 4 years, 8 months ago by markkes.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    if you’re into PHP coding, you could hook into autoptimize_filter_js_exclude (and the CSS one) yourself with a priority 11 (or higher) and try do undo their arscode? ??

    Thread Starter markkes

    (@markkes)

    Thanks for your quick response, I tried some things with the remove_filter() function but cant seem to figure it out. I uncommented the code in the plugin too test but that doesnt seem to work either. Also send a message to the plugin developer but havent got a response yet.

    Can you help me out any further or should I take this up with them?

    Thanks!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    based on “I uncommented the code in the plugin too test but that doesn’t seem to work either” my guess is they’re taking multiple approaches to change AO’s behavior, quite impossible for me to help I’m afraid :-/ but given “Arscode Ninja Popups” is premium software, they _should_ be able and willing to help you?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    No feedback any more so I assume this got resolved with help from the arscode team? Feel free to follow up if you still encounter issues!

    have a nice day!
    frank

    Thread Starter markkes

    (@markkes)

    Their looking it to the issue but havent got a sollution yet.. Dont have support with them either because the plugin came with a premium theme. Hopefully they will follow up asap.

    Thanks for your help!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Exclude scripts not working’ is closed to new replies.