Hi natostanco;
That isn’t possible by default (using the settings screen) but with some coding against autoptimizes API this surely can be done (hooking into the autoptimize_js_after_minify-filter, where you could add whatever JS to the base autoptimized JS).
Hope this helps,
frank
yeah, but to how remove them from the page
not sure I understand the use case I’m afraid; if the scripts are on the page, they’ll be aggregated & minified anyway, so there’s no reason to add them separately?
frank
currently all the js scripts are recognized and some are minified, whereas some are just moved to the footer, indeed no .js scripts appear in the head or body except adsense ones. I would like to try to combine all the scripts moved into the footer, I guess the ismergeable function is forbidding the combine? Maybe I would like to try and bypass it.
ah, ok. small warning first; do take into account that in general JS is in that list because it breaks when being optimized, so I’m not sure this will work OK.
but it can be done, hooking on to the “autoptimize_filter_js_exclude” (and optionally “autoptimize_filter_js_movelast”)-filters to remove any exclusion/ moving of JS.
good luck! 🙂
frank