Thread Starter
drazon
(@drazon)
I confirm that on another setup it works perfectly fine. I will try to track this down more. until then I’m marking the thread as resolved.
what could happen; if “minify inline” breaks another piece of inline JS, the browser might stop executing other JS (LYTE’s a.o.), so have a look at the browser console to see if there are JS errors there?
Thread Starter
drazon
(@drazon)
I tracked it down to this
add_filter('autoptimize_html_after_minify', function($content) {
$content = preg_replace( "/type=['\"]text\/(javascript|css)['\"]/", '', $content );
return $content;
}, 10, 1);
which i have to remove type=”text/css | javascript”
aha! well, you don’t need that anymore (for autoptimized files at least) anyway 🙂