Subscribe via

Released WP Minify 0.3

Comments Off on Released WP Minify 0.3

WP Minify version 0.3 is here!

What’s new this release?

This version of WP Minify has the following enhancements.

  1. WordPress 2.8 Compatibility Fix (minify files enqueued in the footer)

Read on…

How to Troubleshoot WP Minify

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:

  1. 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.
  2. WP Minify then intercepts theme rendering again at the get_footer WordPress hook to stop the output buffer.
  3. The plugin then evaluates the page content to extract all JavaScripts and stylesheets out.
  4. The minified version of these JavaScripts and stylesheets are then re-injected into the content.
  5. The page content is echoed/outputted as normal.

Read on…

Released WP Minify 0.2.0

WP Minify version 0.2.0 is here!

What’s new this release?

This version of WP Minify has the following enhancements.

  1. Changed the way CSS and JS files are picked up (No more wp_enqueue_* requirements!).
  2. Fixed exclusion bug where specified files are not excluded from Minification.
  3. Removed OMNINOGGIN dashboard widget.

Read on…

Released WP Minify 0.1

I have moved WP Minify out of beta stage.

What’s new this release?

This is the official release of WP Minify. This release fixes a bunch of bugs found and reported by the beta testers (THANK YOU!). Here are some updates on bugs and feature requests.

Known bug

  1. Full compatibility with WPMU (I haven’t had time to reproduce this bug).

Upcoming Features

  1. Placing minified scripts in the footer.
  2. Automatic <link> and <script> detection for minifying.
  3. Option for setting far future expiration.
  4. Option for setting the location of local cache files.
  5. Option to not gzip.
  6. Ability to offload files to an external CDN.

Read on…

Tutorial: WP Minify Options

This post will explain the various options in WP Minify WordPress plugin.

Basic Options

Enable JavaScript Minification

When checked, all JavaScript files will be extracted from the HTML output and be minified and served as one compressed JavaScript file.

Enable CSS Minification

When checked, all CSS files will be extracted from the HTML output and be minified and served as one compressed CSS file.

Enable HTML Minification

When checked, your HTML output will also be minified.

JavaScript files to exclude from minify

You may specify any patterns for excluding any Javascript files from the Minifying process. The entries are line delimited so if you specify:

prototype
wp-greet-box/js
googlecode.com

Then the following Javascript files will not get included into the Minifying process if it’s being enqueued via wp_enqueue_script():

  • http://example.com/wp-includes/js/prototype.js
    (matching first rule)
  • http://example.com/wp-content/plugins/wp-greet-box/js/functions.js
    http://example.com/wp-content/plugins/wp-greet-box/js/onload.js
    (matching second rule)
  • http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js
    (matching third rule)

CSS files to exclude from minify

Works the same way as the “JavaScript files to exclude from minify” option except that this field will filter out CSS files.
Read on…

Tutorial: Get WP Minify to Process Your JS and CSS Files

This tutorial only applies to WP Minify pre-2.0.

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…