New Plugin: Minit

Minit plugin for WordPress that combines CSS and Javascript files

Minit 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.


  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.

  4. Matt says:

    Is this plugin still available, I dont see it available in plugin page.

  5. Hi Kaspars,

    I love your plugin, so thank you for the work you have put into it.

    But, is there a way to disable it from working in the WordPress admin?

    It breaks my page builder plugin in the backend.

    Many thanks

    • Kaspars says:

      It shouldn’t run in the backend since WordPress core already does that in the admin. I don’t see it adding anything to the backend of this blog, for example.

  6. Hi Kaspars,

    I like the way you built Minit and learned a lot from reading through your code.

    Thank you very much for making it open-source!

    Kind regards,

Leave a Reply