Last active
February 20, 2018 20:49
-
-
Save remyperona/b5ef03e8d4bcfcd11adc32b8907ef66d to your computer and use it in GitHub Desktop.
Minify inline JS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'rocket_minify_html_options', 'wp_rocket_minify_inline_js' ); | |
function wp_rocket_minify_inline_js( $options ) { | |
$options['jsMinifier'] = 'rocket_minify_inline_js'; | |
return $options; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment