Skip to content

Instantly share code, notes, and snippets.

@netmagik
Created January 29, 2016 17:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save netmagik/d9618ec3b8f13aab68a7 to your computer and use it in GitHub Desktop.
Save netmagik/d9618ec3b8f13aab68a7 to your computer and use it in GitHub Desktop.
// Add Async to JS deferred by Autoptimize plugin
add_filter('autoptimize_filter_js_defer','my_ao_override_defer',10,1);
function my_ao_override_defer($defer) {
return $defer."async ";
}
@lukapaunovic
Copy link

Can you please update this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment