

- #DELETE UNUSED STYLES IN WORD 2017 FOR MAC HOW TO#
- #DELETE UNUSED STYLES IN WORD 2017 FOR MAC UPDATE#
We will explain the following options to disable WooCommerce styles and scripts in WordPress posts that do not have product related stuffs. In addition, you may also see fonts like woocommerce.woff loaded by the plugin. You may see the plugin’s version installed on your site and different CSS files depending on your theme’s WooCommerce setup. Note: The above files are on version 5.7.2 on the twenty-twenty-one theme. wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-vendors-style.css?ver=5.7.2 wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-style.css?ver=5.7.2 wp-content/plugins/woocommerce/assets/js/frontend/?ver=5.7.1 wp-content/plugins/woocommerce/assets/css/twenty-twenty-one.css?ver=5.7.1 wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=5.7.1 wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=5.7.1 Since the page does not have any product or cart intending to sell a product, all the below resources are simply useless. The plugin loads CSS/JS files from /wp-content/plugins/WooCommerce/assets/ and block styles from /wp-content/plugins/WooCommerce/packages/WooCommerce-blocks/build. It should look something like below on Chrome. You can select the post or page where there are no cart, WooCommerce blocks or products.

You can simply disable any caching plugin on your site and check the live page’s source code. Let’s first check the resources loaded by the plugin. In addition, Google PageSpeed Insights will warn you to remove unused CSS and JS on the page thus plummeting the speed score. If you really wanted to use WooCommerce but wanted to get rid of the plugin’s CSS and JS on regular posts/pages then follow one of the below options. We have explained in our earlier article about cart AJAX calls and the speed impact of this.
#DELETE UNUSED STYLES IN WORD 2017 FOR MAC UPDATE#
The reason is also obvious that many sites have the cart button on the top navigation bar thus needing the plugin’s resources to dynamically update the order details. This is due to the fact that WooCommerce plugin does not offer a way to disable resources loaded on the pages where you do intend to sell any products. What happens in this case is that all 1000 posts will load CSS and JS files of the WooCommerce plugin thus reducing the overall site’s speed. For example, it does not make sense to use WooCommerce when you have 10 product pages and 1000 regular posts. Therefore, they will quickly tend to use the plugin for selling simple digital products like eBooks without knowing the intended purpose of the plugin. Many bloggers use commercial themes optimized for WooCommerce plugin. However, in this article we will discuss the different scenario that bloggers face.
#DELETE UNUSED STYLES IN WORD 2017 FOR MAC HOW TO#
You can check out our article on how to fix slow page loading speed with WooCommerce plugin. Probably you have to use WooCommerce optimized hosting companies to speed up the loading of your product pages. So, if you have full-fledged ecommerce store there are not many improvements you can do as each product page on your site needs the plugin. WooCommerce plugin is meant for having a physical business that supports shipping, taxing, etc. In this way, you can leverage the power of WooCommerce as well as have fast loading posts. The best option is to disable WooCommerce styles and scripts on WordPress posts that you do not need them. However, the problem comes in different way that WooCommerce will considerably reduce the page loading speed of your site.

Since it is from the same developer of WordPress, it works seamlessly to support small to large scale business needs. WooCommerce is the most popular WordPress plugin for setting up online store.
