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.
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?
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.
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.
I experienced the same bug as Tim.
The following mess occurred in the CSS after activating Minit.
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.
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.
Is this plugin still available, I dont see it available in plugin page.
Yes, it’s available from this GitHub repo.
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
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.
OK, thanks for checking.
The pagebuilder plugin opens a new window, so maybe it actually runs on the frontend once it has done this.
I’ll look into it.
Thanks
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,
Daniël
I’m glad you found it useful, Daniel!