New Plugin: Minit

Minit plugin for WordPress that combines CSS and Javascript filesMinit is a WordPress plugins that combines (concatenates) all CSS and Javascript files that are enqueued using proper wp_enqueue_script and wp_enqueue_style methods. It also detects external Javascript files and loads them asynchronously in theme footer. Finally, it monitors the last modified time of all files and includes that information in the combined filename for proper cache invalidation.

Minit doesn’t minify combined files for readability and performance reasons. You can see this plugin running on this blog. Thanks Geir for testing the plugin on his blog.

Never lose a single business lead or enquiry again! Get my latest plugin Storage for Contact Form 7 now!

Buy now for only $18 →

5 Comments

  1. You say in the last paragraph “Minit doesn’t minify combined files for readability and performance reasons” why would you bother minifying if not for gaining better performance/load times?

    • Kaspars says:

      I was referring to the performance of the plugin itself, Justin. I should probably add a filter that allows other plugins to minify and do whatever they want with the raw CSS/JS string before saving it to a file.

  2. Tim says:

    After activating this plugin, all icons in the admin bar are not shown in frontend. WordPress is installed to a sub-directory. Maybe you could help me.

  3. Ryan Hellyer says:

    I experienced the same bug as Tim.

    The following mess occurred in the CSS after activating Minit.

    #wpadminbar .menupop .menupop > .ab-item {
    	display: block;
    	background-image: url('http://localhost/wordpress/wp-includes/css/../images/admin-bar-sprite.png?d=20120830');
    	background-position: 95% -20px;
    	background-repeat: no-repeat;
    	padding-right: 2em;
    }

    I’ve also been having some difficulties working out how to filter the URLs to cater for my CDN setup, and for some reason the CSS didn’t seem to update when I edited one of the original files.

    • Kaspars says:

      Ryan, that URL actually exists. Try copy-pasting directly in the browser. I am running MP6 and I can see all icons both in front-end and backend. Can you please make sure you are running the latest version of Minit.

Leave a Reply