Viewing 1 replies (of 1 total)
  • Plugin Author Frank Goossens

    (@futtta)

    yes with a couple of lines of code. you can use the autoptimize_filter_js_defer filter;

    add_filter('autoptimize_filter_js_defer','olorin_override_defer',10,1);
    function olorin_override_defer($defer) {
    	return $defer."async ";
    }

    have fun!
    frank

Viewing 1 replies (of 1 total)

The topic ‘Async/Defer for JS Files’ is closed to new replies.