WP Minify is supposed to work out of the box for many cases. That being said, there will always be plugins that conflict with WP Minify because of the nature of this plugin. In this post, I will show you how to troubleshoot these issues for yourself before you have to hit the plugin support forum.

How does WP Minify Work?

When activated, the plugin does the following:

WP Minify intercepts theme rendering at the get_header WordPress hook and puts everything that is echoed/outputted from the PHP code into an output buffer.

WP Minify then intercepts theme rendering again at the get_footer WordPress hook to stop the output buffer.

The plugin then evaluates the page content to extract all JavaScripts and stylesheets out.

The minified version of these JavaScripts and stylesheets are then re-injected into the content.

You should use this tutorial if you still notice some Javascript and CSS files not being processed by WP Minify after activating the plugin.

Problem

WP Minify only sees scripts and styles enqueued via the wp_enqueue_script() and wp_enqueue_style() function. So if your theme or plugin does not use these functions for printing Javascript or CSS references, then WP Minify will not include them into the Minifying process.Read on…