Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markonikolic985/cc5676c1c91e7ba0d91f63993ed30fee to your computer and use it in GitHub Desktop.
Save markonikolic985/cc5676c1c91e7ba0d91f63993ed30fee to your computer and use it in GitHub Desktop.
function wp_rocket_activate_inline_js_minify( $html_options ) {
$html_options['jsMinifier'] = 'rocket_minify_inline_js';
return $html_options;
}
add_filter( 'rocket_minify_html_options', 'wp_rocket_activate_inline_js_minify' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment