How to Remove Unused CSS on Your WordPress Site - MainWP WordPress Management (2024)

When you are auditing your WordPress website speed with the performance audit tools such as Lighthouse or GTmetrix, one of the most challenging recommendations that will show is to remove unused CSS that is being loaded on your WordPress site.

There are several WordPress plugins that claim to remove unused CSS but many fail. Here are the two easy plugins to be able to remove unused CSS that is loading on your WordPress website.

1. Core Web Vitals & PageSpeed Booster

How to Remove Unused CSS on Your WordPress Site - MainWP WordPress Management (1)

Core Web Vitals & PageSpeed Booster – WordPress plugin

The Core Web Vitals & PageSpeed Booster is a new WordPress performance plugin developed by the team at Magazine3.

Once you have installed and activated the plugin on your site it will add a new admin menu item called; Core Web Vitals

How to Remove Unused CSS on Your WordPress Site - MainWP WordPress Management (2)

Remove Unused CSS – Core Web Vitals & PageSpeed Booster

Navigate to the CSS tab of the plugin settings, you will see a toggle to remove unused CSS. You can also clear the CSS cache from here.

The plugin also includes options for:

  • Lazy loading
  • Minification
  • Google Fonts optimization
  • Delaying JavaScript execution
  • Basic cache and more…

Give a try to this new buddy and don’t forget to share your experience in the comments below.

2. Asset Cleanup

How to Remove Unused CSS on Your WordPress Site - MainWP WordPress Management (3)

Asset CleanUp: Page Speed Booster – WordPress Plugin

The second plugin to remove unused CSS is Asset CleanUp which will not only allow you to disable CSS but also the JavaScript that is being loaded by active plugins and the active theme from loading on specific pages on your WordPress site.

You will need to have the Asset CleanUp plugin installed and activated on your site and then on the edit a Page or Post screen, the Asset Cleanup: CSS & JavaScript Manager / Page Options section will show all of the CSS and JavaScript files that are being loaded on it.

How to Remove Unused CSS on Your WordPress Site - MainWP WordPress Management (4)

Asset CleanUp Page Options

In the Manage CSS & JS page option, set the CSS that should not be loading on the page or post to be unloaded and when you save and refresh that page in your browser. The disabled/removed unused CSS assets will no longer be loading on the page or post.

  • The Asset CleanUp plugin also includes features such as:
  • Optimize CSS to minify and combine
  • Optimize JavaScript to be able to minify and combine
  • Disable emojis, embeds, disable dash icons, block library, comment reply site-wide, and so on.

You can also remove unused elements from the head section of your site such as RSD, windows live, REST API link tag, WordPress meta tag, main RSS feed link and the comment RSS feed link.

There is also a pro version of the Asset CleanUp plugin if you need a number of additional options for your site.

Using either the Core Web Vitals or Asset CleanUp plugins on your site will make it easy to be able to remove unused CSS on your site for a performance gain.

Useful links

How to Remove Unused CSS on Your WordPress Site - MainWP WordPress Management (2024)
Top Articles
Protecting your privacy - Airbnb Help Center
Bridge via Crypto.com | Crypto.com Help Center
Absence & Substitute Management - Part of Frontline Absence & Time
8.7 Increase Of 841
We at yo momma house train Full video
Moxfield Deck Builder
World War II: Summary, Combatants & Facts | HISTORY
Car of the Week | Week 75: Strong and Steady (Honda Castrol MUGEN NSX '00)
A2 Key preparation | Cambridge English
Hell Hades Genbo
Studentvue Calexico
Tara Brown Sleep Styler Net Worth
Azpeople Self Service
Embassy Suites Wisconsin Dells
Bleacher Report Philadelphia Flyers
Las Vegas Noaa
M3Gan Showtimes Near Regal City North
Ltlv Las Vegas
Trap Candy Strain Leafly
Safelite Paris Tn
Mady Gio Feet
Behind the Idea: OpenPayd | The Fintech Times
Quincy Herald-Whig Obituaries Past 3 Days
Decree Of Spite Poe
Uw Madison Mechanical Engineering Flowchart
Ixl Ld Northeast
Adam Kovic Google Drive
URB-E Electric Folding Scooter Review | Gear Gadgets and Gizmos
Weilers Gentle Giants
List of 200 Icebreaker Questions & Useful Practical Tips - Slido
Biggerlifestyles
Purple Trufflez Strain Leafly
Google Sites Among Us
Chrisean Rock Nip.slip
ما ملكت أيمانكم (مسلسل) - المعرفة
Craislist Vt
Optum Primary Care - Winter Park Aloma
Jinxed Xp
Commercial Cleaning Tips and Tricks: The Ultimate Guide - Green Planet
Leslie Pool Supply Simi Valley
Hk Jockey Club Result
Mythical Horses (Tier 10) - BDFoundry
Go Nutrients Intestinal Edge Reviews
Happy Ending Massage Augusta Ga
42 Best Sites Like Craigslist & Craigslist Personals Alternatives
Myfreewebcam Org
northern virginia apartments / housing for rent - craigslist
20Xx Training Pack
Compass | History, Uses & Types
Latest Posts
Article information

Author: Francesca Jacobs Ret

Last Updated:

Views: 6775

Rating: 4.8 / 5 (48 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Francesca Jacobs Ret

Birthday: 1996-12-09

Address: Apt. 141 1406 Mitch Summit, New Teganshire, UT 82655-0699

Phone: +2296092334654

Job: Technology Architect

Hobby: Snowboarding, Scouting, Foreign language learning, Dowsing, Baton twirling, Sculpting, Cabaret

Introduction: My name is Francesca Jacobs Ret, I am a innocent, super, beautiful, charming, lucky, gentle, clever person who loves writing and wants to share my knowledge and understanding with you.