Optimizing WP Clips and your customizations for maximum speed and efficiency is really very simple. You can do any or all of three things –
- Remove or hide unused files in your custom Clip. The custom-functions.php, custom-styles.css and custom-jquery.js files are all enqueued and called by default. However, you can limit your HTML calls by either deleting the unused files or simply hiding them in a sub-folder (e.g. clip/dormant/custom-jquery.js).
- Download and install a popular caching plugin such as W3 Total Cache or WP Super Cache. Configure to your requirements and be sure to contact your host for any possible server conflicts and essential settings.
- Download and install WP Clips Combine and Minify (via WP Clips or WP Clips Multisite). This will minify the CSS stylesheets and JS scripts of all custom and Precoded Clips and combine into a single file for each. Sets of combined/minified files can also be created for declared page conditions [e.g. if( is_archive() ) ] to prevent the inclusion of unrelated files. A further option is available to add HTML minification if not already enabled in another plugin.
Note: Only CSS and JS files registered with the ‘clip-‘ handle prefix will be optimized by WP Clips Combine and Minify (as per Precoded Clip coding conventions).
And that’s all there is to it!
Leave a Reply