Exclude scripts not working
-
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
- The topic ‘Exclude scripts not working’ is closed to new replies.