Skip to content
Viktor Szépe edited this page Aug 31, 2016 · 4 revisions

Minit makes the following assumptions:

  • You want only one script element on your site and you want it in the footer and async.
  • You want only one style link on your site.

Minit doesn't support any scripts in the <head />. The only options is to exclude the specific script from Minit completely:

add_filter( 'minit-exclude-js', function ( $handles ) {
	$exclude = array(
		'script-handle-to-exclude',
	);

	return array_merge( $handles, $exclude );
} );
Clone this wiki locally