How to unload Swiper from Elementor

One of the largest assets loaded from Elementor plugin is Swiper located in /wp-content/plugins/elementor/assets/lib/swiper/swiper.min.js (this is the minified version which should load in a live environment) which uncompressed (if the server where the website is located doesn’t serve files GZIP compressed) has a size of ~135 KB which is quite a lot for just one […]

Read More

How to check if Gutenberg Blocks CSS file is needed or not

One of the most common files that are loaded by default in WordPress (at least at the time of writing this, June 2, 2020) is /wp-includes/css/dist/block-library/style.min.css which has a size of ~54 KB (if it’s not GZIP compressed). In many cases, it is not needed site-wide or on certain pages depending on the situation, if […]

Read More

What are plugins unload rules?

This is a feature available in the Pro version of Asset CleanUp. Remember: When you unload a plugin, you would not only unload all the CSS/JS that is loading from that plugin but everything else: its backend PHP code, HTML output printed via wp_head() or wp_footer() action hooks, cookies that are set), etc. It would […]

Read More

What are CSS/JS unload rules?

An unload rule is the action that prevents a specific asset (CSS/JavaScript file) from loading on a certain page, a group of pages or site-wide (everywhere, on all pages of the website). These include: Unload on this page (applies only on the post/page that you’re editing) Unload everywhere (site-wide unload of an asset) Unload on […]

Read More