They have built a decent amount of flexibility into the plugin with several filters that allow you to control and tweak its default behavior. The Dependency Minification plugin is supported by a large group of experienced developers who continue to improve it.
#Best minify plugin install
If you want to use it on a multisite network, the plugin’s instructions advise you to install and activate scribu‘s Proper Network Activation plugin before activating it network-wide. WordPress super admins will be glad to know that Dependency Minification is also multisite-compatible. background-images) to absolute ones, so that they don’t 404.
#Best minify plugin code
Minified and concatenated dependencies will appear in your code with /_minify/ in the path similar to this: How do you know it’s working? In addition to the information on the plugin’s settings page, you can view the source of your site. Try browsing the site.Īfter you browse the frontend (which activates WP-Cron) and then visit the settings page, you’ll see that the process of minifying and concatenating resources has begun: When you first install it and visit the settings page, you’ll see a notice:
It’s a reincarnation and rewrite of the X-Team’s popular Optimize Scripts plugin, which is now officially retired.ĭependency Minification grabs scripts and stylesheets that have been added via wp_enqueue_script and wp_enqueue_style and automatically concatenates and minifies them into logical groups using WP-Cron.
#Best minify plugin download
Combining (“concatenating”) multiple scripts reduces the number of requests, allowing you to download more assets in parallel to speed things up.ĭependency Minification is a plugin that will automatically concatenate and minify scripts and stylesheets for you.
The process of “minifying” eliminates wasted space in the scripts and stylesheets, which makes them much smaller and able to load faster. One of the most common frontend optimization techniques is to concatenate and minify your resources, which reduces the number of requests as well as the file size of the resources requested.
Frontend optimization is often further down on the list but can have a tremendous effect on performance. If you’re obsessed with improving your site’s loading time then you’ve probably already looked into caching and server optimizations. Photo credit: PetitPlat – Stephanie Kilgast – cc