Problem:
Try to optimize my site loading and find by all site speed tools that there are some toolset css files which critically impact site optimization:
/wp-content/plugins/layouts/vendor/toolset/toolset-common/res/css/toolset-notifications.css
/wp-content/plugins/cred-frontend-editor/vendor/toolset/onthego-resources/onthegosystems-icons/css/onthegosystems-icons.css
Is there any chance to remove these css or optimize it on frontend?
Solution:
Please add this code in your theme’s or child theme’s functions.php file to dequeue (remove) it on the frontend:
add_action('wp_enqueue_scripts', function() { wp_dequeue_style('toolset-notifications'); wp_dequeue_style('onthego-buttons'); wp_dequeue_style('onthegosystems-icons'); wp_dequeue_style('onthego-colors'); wp_dequeue_style('onthego-styles-helper'); wp_dequeue_style('onthego-admin-styles'); }, 20);
Relevant Documentation:
https://codex.wordpress.org/Function_Reference/wp_dequeue_style
http://inspirationalpixels.com/tutorials/remove-plugin-scripts-wordpress
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | - |
- | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | - |
Supporter timezone: Asia/Karachi (GMT+05:00)