{"id":3455832,"date":"2021-06-01T15:16:55","date_gmt":"2021-06-01T13:16:55","guid":{"rendered":"https:\/\/wp-rocket.me\/?post_type=core_web_vitals_hub&#038;p=3455832"},"modified":"2024-06-27T12:24:04","modified_gmt":"2024-06-27T10:24:04","slug":"remove-unused-css","status":"publish","type":"core_web_vitals_hub","link":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/","title":{"rendered":"How to Remove Unused CSS on WordPress (With + Without Plugins)"},"content":{"rendered":"<p>CSS rules are one of the most common sources of site bloat. Removing unused CSS on WordPress sites improves speed and performance.&nbsp;<\/p><p>If you ran a performance audit of your site through PageSpeed Insights, you may have come across the \u201cReduce unused CSS\u201d (previously \u201cRemove unused CSS\u201d) recommendation. It\u2019s one of the most common PageSpeed Insights recommendations and affects Core Web Vitals metrics such as Largest Contentful Paint (LCP).<\/p><p>The primary sources of unused CSS on WordPress sites are bloated plugins, page builders, themes, and font icons. However, identifying unused CSS and reducing or removing it is not always straightforward.<\/p><p>This article will detail simple and easy ways to identify and remove\/reduce unused CSS. We\u2019ll cover how to do it both without and with plugins.&nbsp;<\/p><h2 class=\"wp-block-heading\">What Is Unused CSS?<\/h2><p>Shipping unused CSS is a common issue in web development, including WordPress development.&nbsp;<\/p><p>Most WordPress themes include stylesheets referencing various design elements and components. These stylesheets are loaded on every page, even if you\u2019re not using many of these components on a particular page.&nbsp;&nbsp;<\/p><p>PageSpeed Insights report will throw up this suggestion if it detects more than 10kb of unused CSS files on the page. You can <a href=\"https:\/\/developer.chrome.com\/docs\/lighthouse\/performance\/unused-css-rules\/\">read more about its methodology here<\/a>.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"939\" height=\"510\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights.png\" alt=\"\u201cReduce unused CSS\u201d recommendation in PageSpeed Insights\n\" class=\"wp-image-6412078\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights.png 939w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights-310x168.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights-768x417.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights-110x60.png 110w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights-166x90.png 166w\" sizes=\"(max-width: 939px) 100vw, 939px\" \/><figcaption class=\"wp-element-caption\">\u201cReduce unused CSS\u201d recommendation in PageSpeed Insights<br><\/figcaption><\/figure><p>The PageSpeed Insights result above shows that the page loads stylesheets for dash icons and block libraries. But not all of the styles in them are used on the page. Removing <strong>dashicons.min.css <\/strong>results in 100% potential savings. This extra code slows down your website, resulting in poor user experience.&nbsp;<\/p><p>Why does this happen? Many popular WordPress themes, plugins, and page builders are designed to satisfy diverse users requiring various functionality. However, customizing the final CSS output to include only the used elements is complex. Hence, they\u2019re all bundled together in a single CSS file. Typically, this file is named <strong>style.css<\/strong> or <strong>stylesheet.css<\/strong>.&nbsp;&nbsp;&nbsp;&nbsp;<\/p><p>Some themes may go the extra mile to optimize this by splitting the stylesheets into multiple CSS files. For instance, they may have separate stylesheets for buttons, navigation menus, icons, tables, galleries, etc.&nbsp;<\/p><p>But the core issue remains. Even if you use just one type of button on a page, it\u2019ll load all button styles.&nbsp;<\/p><p>That\u2019s unused CSS.&nbsp;<\/p><p>Reducing or removing unused CSS will improve your page speed performance and SEO.&nbsp;<\/p><h2 class=\"wp-block-heading\">Why You Should Reduce\/Remove Unused CSS<\/h2><p>Unused CSS are CSS styles that are not needed to render a page correctly. They can be added as files or as internal styles for elements on a page. Even if you remove all of them, the page will display just fine to the user.&nbsp;<\/p><p>They can have several performance impacts on your website, affecting load times and user experience. Here are their most critical performance impacts:<\/p><h4 class=\"wp-block-heading\">Increased Page Load Times<\/h4><p>Unused CSS contributes to larger stylesheets, leading to longer download times for your users. It\u2019s especially critical for those using slower network connections or mobile devices.&nbsp;<\/p><p>Larger CSS files also increase network overhead as browsers need to download more data. This can be particularly problematic for sites attracting high traffic.&nbsp; The same holds for users with limited bandwidth or on networks with high latency.&nbsp;&nbsp;<\/p><p>If you\u2019re on a hosting plan that limits your bandwidth usage, you may also pay more to upgrade to costlier plans. The higher traffic your site attracts, the more serious unused CSS becomes.&nbsp;<\/p><h4 class=\"wp-block-heading\">Delayed Browser Rendering<\/h4><p>If unused CSS is included on the page, the browser must download, parse, and process it before displaying or rendering it.&nbsp;<\/p><p>Browsers typically don\u2019t display content before processing the stylesheets, as they may contain CSS rules to style the page. Hence, whether used or not, the browser must download each CSS file from the network.&nbsp;<\/p><p>Unused CSS extends this process, delaying the rendering of the visible content and potentially impacting the perceived performance of your site.<\/p><p>Unused CSS also affects how fast a page loads its above-the-fold content \u2014 the first thing a user sees on the page. This section should be displayed as quickly as possible so the users can start interacting with the page immediately.<\/p><h4 class=\"wp-block-heading\">Mobile Performance Issues<\/h4><p>Mobile users, who often have limited resources compared to desktop users, may experience more pronounced performance issues when downloading and rendering large CSS files. This is especially critical given the increasing number of users accessing websites on mobile devices.<\/p><h4 class=\"wp-block-heading\">Increased Maintenance Effort<\/h4><p>Large and unused CSS files complicate maintaining your website. More CSS rules mean identifying and fixing issues becomes more challenging. That can also make it harder to collaborate with others on maintaining the website.<\/p><h4 class=\"wp-block-heading\">Loading Dependencies<\/h4><p>Unused CSS might also include additional dependencies, such as fonts or images, further increasing the load time and negatively impacting page performance. Removing such unused CSS rules will also <a href=\"https:\/\/wp-rocket.me\/blog\/reduce-http-requests-speed-wordpress-site\/\">reduce the number of HTTP requests<\/a>, further boosting the page speed.&nbsp;<\/p><p>To mitigate these performance impacts, you must regularly audit and optimize your CSS, ensuring only the necessary styles are included in your web pages.&nbsp;<\/p><p>You can use various tools and techniques to help identify and remove unused CSS from your stylesheets.<\/p><h2 class=\"wp-block-heading\">How to Diagnose and Identify Unused CSS<\/h2><p>The first step towards reducing or removing unused CSS is finding out which CSS rules are unused on a page.&nbsp;<\/p><p>However, this process can be challenging depending on multiple factors:<\/p><ul class=\"wp-block-list\"><li>The platform your site is built on (simple HTML, a CMS like WordPress, JS framework, etc.).<\/li>\n\n<li>Site complexity (dynamic vs. static sites).<\/li>\n\n<li>Other features your site may implement.&nbsp;&nbsp;&nbsp;<\/li><\/ul><p>For instance, a page may not use a CSS rule when initially loaded, but depending on a user&#8217;s action, it may have to use that rule to style an element.<\/p><p>An example is adding a product to your shopping cart and displaying the item on your page\u2019s navigation menu or sidebar. Such elements also need styling.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1746\" height=\"683\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Shopping-Cart-Dynamic-CSS.png\" alt=\"Online shopping carts dynamically load CSS\n\" class=\"wp-image-6412090\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Shopping-Cart-Dynamic-CSS.png 1746w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Shopping-Cart-Dynamic-CSS-310x121.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Shopping-Cart-Dynamic-CSS-768x300.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Shopping-Cart-Dynamic-CSS-153x60.png 153w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Shopping-Cart-Dynamic-CSS-230x90.png 230w\" sizes=\"(max-width: 1746px) 100vw, 1746px\" \/><figcaption class=\"wp-element-caption\">Online shopping carts dynamically load CSS<br><\/figcaption><\/figure><p>Typically, these user actions dynamically load CSS rules using JavaScript-added CSS selectors or AJAX elements.&nbsp;<\/p><p>The following points cover step-by-step instructions on auditing and identifying unused CSS.<\/p><h3 class=\"wp-block-heading\">1. Browser Developer Tools<\/h3><p>Most browsers have built-in developer tools to help you identify large or unused CSS rules and JavaScript code. We\u2019ll use the Chrome browser and its built-in DevTools to demonstrate this.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1103\" height=\"439\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools.png\" alt=\"Chrome DevTools\" class=\"wp-image-6412105\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools.png 1103w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-310x123.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-768x306.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-151x60.png 151w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-226x90.png 226w\" sizes=\"(max-width: 1103px) 100vw, 1103px\" \/><figcaption class=\"wp-element-caption\">Chrome DevTools<\/figcaption><\/figure><p>First, load the page you want to audit for unused CSS. Then open DevTools (use these keyboard shortcuts: <strong>Control<\/strong>\/<strong>Command+Shift+C<\/strong>&nbsp; or <strong>F12<\/strong>).&nbsp;&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1104\" height=\"419\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Run-Command.png\" alt=\"Chrome DevTools &gt; Run command\" class=\"wp-image-6412113\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Run-Command.png 1104w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Run-Command-310x118.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Run-Command-768x291.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Run-Command-158x60.png 158w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Run-Command-237x90.png 237w\" sizes=\"(max-width: 1104px) 100vw, 1104px\" \/><figcaption class=\"wp-element-caption\">Chrome DevTools &gt; Run command<\/figcaption><\/figure><p>Here, go to the <a href=\"https:\/\/developer.chrome.com\/docs\/devtools\/coverage\/\">Coverage<\/a> tab. If you don\u2019t see it, open the Run command menu (<strong>Control+Shift+P<\/strong>), start typing <strong>coverage<\/strong>, and then select the <strong>Show Coverage<\/strong> command.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1104\" height=\"193\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Show-Coverage-Command.png\" alt=\"Chrome DevTools &gt; Show Coverage command\n\" class=\"wp-image-6412119\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Show-Coverage-Command.png 1104w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Show-Coverage-Command-310x54.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Show-Coverage-Command-768x134.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Show-Coverage-Command-190x33.png 190w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Show-Coverage-Command-515x90.png 515w\" sizes=\"(max-width: 1104px) 100vw, 1104px\" \/><figcaption class=\"wp-element-caption\">Chrome DevTools &gt; Show Coverage command<br><\/figcaption><\/figure><p>You\u2019ll now see the Coverage tab in the DevTools drawer.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1105\" height=\"465\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Tab-Drawer.png\" alt=\"Chrome DevTools\u2019 Coverage drawer\n\" class=\"wp-image-6412126\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Tab-Drawer.png 1105w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Tab-Drawer-310x130.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Tab-Drawer-768x323.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Tab-Drawer-143x60.png 143w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Tab-Drawer-214x90.png 214w\" sizes=\"(max-width: 1105px) 100vw, 1105px\" \/><figcaption class=\"wp-element-caption\">Chrome DevTools\u2019 Coverage drawer<br><\/figcaption><\/figure><p>Next, you can start recording code coverage by clicking the <strong>Start Instrumenting Coverage And Reload Page<\/strong> button. If the page is interactive, you may see the Instrument Coverage button instead. It\u2019ll also record the code used as you interact with the webpage. <strong>&nbsp;&nbsp;&nbsp;<\/strong><\/p><p>Once you\u2019ve finished loading and interacting with the page, click the <strong>Stop Instrumenting Coverage And Show Results<\/strong> red dot button.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1097\" height=\"499\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Recorded-Results.png\" alt=\"Chrome DevTools &gt; Coverage\u2019s recorded results\n\" class=\"wp-image-6412134\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Recorded-Results.png 1097w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Recorded-Results-310x141.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Recorded-Results-768x349.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Recorded-Results-132x60.png 132w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Recorded-Results-198x90.png 198w\" sizes=\"(max-width: 1097px) 100vw, 1097px\" \/><figcaption class=\"wp-element-caption\">Chrome DevTools &gt; Coverage\u2019s recorded results<br><\/figcaption><\/figure><p>The <strong>Coverage<\/strong> tab\u2019s table shows you all the recorded resources and how much code from each resource was used. It uses a red vs. green horizontal bar graph to illustrate the unused vs. used code.&nbsp;<\/p><p>You can click any row here to analyze the resource in detail inside the DevTools <strong>Sources<\/strong> tab. Any unused code will be marked with a vertical red line on its left.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1101\" height=\"576\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Sources-Unused-Sources-Panel.png\" alt=\"Seeing the used and unused sources in the DevTools sources panel\n\" class=\"wp-image-6412145\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Sources-Unused-Sources-Panel.png 1101w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Sources-Unused-Sources-Panel-310x162.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Sources-Unused-Sources-Panel-768x402.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Sources-Unused-Sources-Panel-115x60.png 115w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Chrome-DevTools-Coverage-Sources-Unused-Sources-Panel-172x90.png 172w\" sizes=\"(max-width: 1101px) 100vw, 1101px\" \/><figcaption class=\"wp-element-caption\">Seeing the used and unused sources in the DevTools sources panel<br><\/figcaption><\/figure><p>In the example above, the page doesn\u2019t use Open Sans font but still loads it. Hence, 100% of its CSS code remains unused. It\u2019s recommended to remove this font from loading on this page.&nbsp;&nbsp;&nbsp;<\/p><p><strong>Note:<\/strong> Finding unused CSS styles is relatively easy, but refactoring your website code so each page only ships the CSS it needs can be challenging. It varies depending on your site\u2019s unique technology stack.<\/p><h3 class=\"wp-block-heading\">2. Browser Extensions<\/h3><p>You can also use browser extensions like <a href=\"https:\/\/chromewebstore.google.com\/search\/unused%20CSS\">Unused CSS Tracker<\/a> and <a href=\"https:\/\/chromewebstore.google.com\/detail\/sniper-css\/kknjnehpgiaeljeilemamjjiopemockp\">Sniper CSS<\/a> to track and avoid unused CSS.&nbsp;<\/p><p>Unused CSS Tracker will track every user interaction on a webpage, even if you navigate to a different page. You can manually stop the tracking and view the unused CSS results on each page.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2032\" height=\"1072\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Unused-CSS-Tracker-Chrome-Browser-Extension.png\" alt=\"Unused CSS Tracker Chrome extension\n\" class=\"wp-image-6412157\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Unused-CSS-Tracker-Chrome-Browser-Extension.png 2032w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Unused-CSS-Tracker-Chrome-Browser-Extension-310x164.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Unused-CSS-Tracker-Chrome-Browser-Extension-768x405.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Unused-CSS-Tracker-Chrome-Browser-Extension-114x60.png 114w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Unused-CSS-Tracker-Chrome-Browser-Extension-171x90.png 171w\" sizes=\"(max-width: 2032px) 100vw, 2032px\" \/><figcaption class=\"wp-element-caption\">Unused CSS Tracker Chrome extension<br><\/figcaption><\/figure><p>Sniper CSS works a bit differently. It\u2019ll emulate various interactions and collect all your site\u2019s CSS rules. Then, it\u2019ll compare them with all the loaded CSS code to show you unused CSS styles.&nbsp;&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1988\" height=\"944\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Sniper-CSS-Chrome-Browser-Extension.png\" alt=\"Sniper CSS Chrome extension\n\" class=\"wp-image-6412164\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Sniper-CSS-Chrome-Browser-Extension.png 1988w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Sniper-CSS-Chrome-Browser-Extension-310x147.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Sniper-CSS-Chrome-Browser-Extension-768x365.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Sniper-CSS-Chrome-Browser-Extension-126x60.png 126w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Sniper-CSS-Chrome-Browser-Extension-190x90.png 190w\" sizes=\"(max-width: 1988px) 100vw, 1988px\" \/><figcaption class=\"wp-element-caption\">Sniper CSS Chrome extension<br><\/figcaption><\/figure><h3 class=\"wp-block-heading\">3. Critical CSS Path Generators<\/h3><p>Prioritizing loading your <a href=\"https:\/\/wp-rocket.me\/blog\/critical-css\/\">page\u2019s critical CSS<\/a> is critical to speed up your website. Critical CSS path generators automatically remove or defer any unused CSS in the page\u2019s above-the-fold content.&nbsp;<\/p><p>You can use various tools to identify and generate critical CSS. The most popular of them is <a href=\"https:\/\/github.com\/addyosmani\/critical\">Critical<\/a>, maintained by Google engineer Addy Osmani. Critical extracts, inlines, and minifies critical-path CSS from HTML.<\/p><h3 class=\"wp-block-heading\">4. Site Performance Audit Tools<\/h3><p>You may be reading this article because of the suggestion to \u201cReduce unused CSS\u201d from the PageSpeed Insights site performance audit tool. It\u2019s powered by Google Lighthouse and highlights all the major unused CSS stylesheets on your page.<\/p><p><\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"939\" height=\"510\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights-1.png\" alt=\"PageSpeed Insights \u201cReduce unused CSS\u201d warning\n\" class=\"wp-image-6412175\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights-1.png 939w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights-1-310x168.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights-1-768x417.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights-1-110x60.png 110w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights-1-166x90.png 166w\" sizes=\"(max-width: 939px) 100vw, 939px\" \/><figcaption class=\"wp-element-caption\">PageSpeed Insights \u201cReduce unused CSS\u201d warning<br><\/figcaption><\/figure><p>Likewise, most page speed testing tools, like <a href=\"https:\/\/wp-rocket.me\/blog\/gtmetrix\/\">GTmetrix<\/a> (also powered by Google Lighthouse), include a Waterfall chart to check for large CSS files.<\/p><figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"694\" height=\"444\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Waterfall-Chart-WPRocket-GTMetrix.png\" alt=\"GTmetrix Waterfall Chart\n\" class=\"wp-image-6412182\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Waterfall-Chart-WPRocket-GTMetrix.png 694w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Waterfall-Chart-WPRocket-GTMetrix-305x195.png 305w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Waterfall-Chart-WPRocket-GTMetrix-94x60.png 94w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Waterfall-Chart-WPRocket-GTMetrix-141x90.png 141w\" sizes=\"(max-width: 694px) 100vw, 694px\" \/><figcaption class=\"wp-element-caption\">GTmetrix Waterfall Chart<br><\/figcaption><\/figure><p>Going through these results will hint you towards areas on your site where you can potentially trim down unnecessary CSS.&nbsp;&nbsp;<\/p><h3 class=\"wp-block-heading\">5. CSS Frameworks and Libraries<\/h3><p>Some CSS frameworks or libraries provide tools or options for removing unused styles during the build stage itself. That way, you don\u2019t have to do that later.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"890\" height=\"537\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Bootstrap-Lean-Sass-Imports.png\" alt=\"Bootstrap Optimize\n\" class=\"wp-image-6412189\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Bootstrap-Lean-Sass-Imports.png 890w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Bootstrap-Lean-Sass-Imports-310x187.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Bootstrap-Lean-Sass-Imports-768x463.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Bootstrap-Lean-Sass-Imports-99x60.png 99w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Bootstrap-Lean-Sass-Imports-149x90.png 149w\" sizes=\"(max-width: 890px) 100vw, 890px\" \/><figcaption class=\"wp-element-caption\">Bootstrap Optimize<br><\/figcaption><\/figure><p>For instance, Bootstrap can <a href=\"https:\/\/getbootstrap.com\/docs\/5.0\/customize\/optimize\/\">include only its used components<\/a> and styles. You can comment out or delete Bootstrap components you\u2019re not using from your asset pipeline.&nbsp;<\/p><p>As an example, if you\u2019re not using carousels or spinners on your website, you can avoid importing them while compiling CSS, resulting in an optimized CSS file size.&nbsp;&nbsp;<\/p><p>As mentioned, you can <a href=\"https:\/\/medium.com\/dwarves-foundation\/remove-unused-css-styles-from-bootstrap-using-purgecss-88395a2c5772\">use PurgeCSS<\/a> to automatically remove unused CSS from CSS frameworks or libraries.&nbsp;<\/p><h3 class=\"wp-block-heading\">6. Manual Code Review<\/h3><p>Audit your CSS files and look for styles not applied to any elements on your page. You may also find some duplicated rules across different stylesheets.&nbsp;<\/p><p>However, this approach requires a thorough understanding of your project&#8217;s code structure, including CSS, JS, and PHP templates (if any). This task is better suited for website developers.&nbsp;<\/p><h3 class=\"wp-block-heading\">7. WordPress Plugins<\/h3><p>Finally, if your site is built with WordPress, you can use its many plugins to find, check, and reduce unused CSS.&nbsp;<\/p><p>Some plugins, like <a href=\"https:\/\/wordpress.org\/plugins\/wp-asset-clean-up\/\">Asset CleanUp<\/a> and Clearfy, will help you remove the unused stylesheets manually from the page load. In contrast, plugins such as WP Rocket have more advanced features to tackle unused CSS automatically. We\u2019ll cover them in detail in a later section.&nbsp;<\/p><p><strong>\u26a0\ufe0f Important:<\/strong> You must actively monitor the page design after removing or reducing unused CSS. There\u2019s a high chance that the process is not 100% thorough. Before removing any CSS, ensure it doesn&#8217;t impact your page functionality or appearance. And as always, keep backups of your original stylesheets if you need to revert changes.<\/p><h2 class=\"wp-block-heading\">Tools to Reduce\/Remove Unused CSS Manually in WordPress<\/h2><p>Removing or reducing unused CSS automatically is an advanced feature not included in most WordPress plugins, especially free plugins. However, once you\u2019ve identified which CSS styles aren\u2019t necessary, you can manually remove or reduce unused CSS using several tools and techniques.&nbsp;<\/p><p>We\u2019ll outline some tools and WordPress plugins you can use to manually reduce or remove unused CSS.&nbsp;&nbsp;<\/p><h3 class=\"wp-block-heading\">1. CSS Remover Tools<\/h3><p>Several tools like <a href=\"https:\/\/purgecss.com\/\">PurgeCSS<\/a> and <a href=\"https:\/\/unused-css.com\/\">UnusedCSS<\/a> can help analyze your HTML, CSS, and JS files, and extract only the used CSS.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"860\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/UnusedCSS-homepage.png\" alt=\"UnusedCSS homepage\n\" class=\"wp-image-6412209\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/UnusedCSS-homepage.png 1600w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/UnusedCSS-homepage-310x167.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/UnusedCSS-homepage-768x413.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/UnusedCSS-homepage-112x60.png 112w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/UnusedCSS-homepage-167x90.png 167w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><figcaption class=\"wp-element-caption\">UnusedCSS homepage<br><\/figcaption><\/figure><p>You can get started quickly with UnusedCSS or <a href=\"https:\/\/uncss-online.com\/\">UnCSS Online<\/a>, as they\u2019re online tools and don\u2019t require much setup.&nbsp;<\/p><p><strong>Note:<\/strong> UnCSS only analyzes a page\u2019s HTML and JS that runs on page load. It cannot handle user interactions.&nbsp;&nbsp;<\/p><p>The other tools require some development knowledge. PurgeCSS has handy step-by-step guides for most platforms, <a href=\"https:\/\/purgecss.com\/guides\/wordpress.html\">including WordPress<\/a>. You can also run UnCSS on your server if using the online tool isn\u2019t your thing.&nbsp;<\/p><p><strong>\u26a0\ufe0f Important<\/strong>: Running on your server can be demanding on its resources, especially if you\u2019re using PHP. Monitor your website server and site uptime while performing this task.&nbsp;&nbsp;&nbsp;<\/p><h3 class=\"wp-block-heading\">2. Asset CleanUp: Page Speed Booster<\/h3><p>Minifying and combining CSS and JavaScript files can only do so much. Those assets still have to be loaded and parsed by the browser. What if the page doesn\u2019t need those assets to load and display correctly?&nbsp;<\/p><p>The free <a href=\"https:\/\/wordpress.org\/plugins\/wp-asset-clean-up\/\">Asset Cleanup plugin<\/a> does exactly that. It lets you eliminate page bloat without much effort on a per-page basis.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"931\" height=\"408\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Asset-Cleanup-WordPress-Plugin.png\" alt=\"Asset CleanUp\n\" class=\"wp-image-6412216\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Asset-Cleanup-WordPress-Plugin.png 931w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Asset-Cleanup-WordPress-Plugin-310x136.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Asset-Cleanup-WordPress-Plugin-768x337.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Asset-Cleanup-WordPress-Plugin-137x60.png 137w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Asset-Cleanup-WordPress-Plugin-205x90.png 205w\" sizes=\"(max-width: 931px) 100vw, 931px\" \/><figcaption class=\"wp-element-caption\">Asset CleanUp<br><\/figcaption><\/figure><p>For instance, if your homepage doesn\u2019t have a contact form, it doesn\u2019t have to load CSS styles and JavaScript files to generate contact forms. Likewise, you may have many other pages that do not use contact forms. Now imagine the page bloat you can reduce by restricting only pages using contact forms to load assets related to them.&nbsp;<\/p><p>Another example is removing Gutenberg CSS if you\u2019re not using it on your site. Enabling Asset Cleanup\u2019s <strong>Disable Gutenberg CSS Block Library Site-Wide<\/strong> option will unload all Gutenberg Block CSS files.&nbsp;&nbsp;<\/p><p>Asset CleanUp detects all your page assets and lists them cleanly in your WordPress page editing dashboard. Here, you can select all the unused CSS and JS assets, reducing the page bloat considerably. It works best with page caching enabled. For that, you can use a <a href=\"https:\/\/wp-rocket.me\/wordpress-cache\/best-caching-plugins\/\">cache plugin<\/a> like WP Rocket, a hosting company that offers server-level page caching, or a CDN like Cloudflare with page caching enabled. WP Rocket is <a href=\"https:\/\/wp-rocket.me\/compatibilities\/\">compatible with many hosting companies<\/a>, so you can also combine them to maximize your site\u2019s performance optimization.&nbsp;<\/p><h3 class=\"wp-block-heading\">3. WordPress Assets Manager<\/h3><p><a href=\"https:\/\/wordpress.org\/plugins\/gonzales\/\">WordPress Assets Manager<\/a> is another assets cleanup plugin to speed up your WordPress site. You can use it to remove unused scripts and styles on WordPress pages.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"939\" height=\"436\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WordPress-Assets-Manager-WordPress-Plugin.png\" alt=\"WordPress Assets Manager\n\" class=\"wp-image-6412222\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WordPress-Assets-Manager-WordPress-Plugin.png 939w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WordPress-Assets-Manager-WordPress-Plugin-310x144.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WordPress-Assets-Manager-WordPress-Plugin-768x357.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WordPress-Assets-Manager-WordPress-Plugin-129x60.png 129w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WordPress-Assets-Manager-WordPress-Plugin-194x90.png 194w\" sizes=\"(max-width: 939px) 100vw, 939px\" \/><figcaption class=\"wp-element-caption\">WordPress Assets Manager<br><\/figcaption><\/figure><p>Like with the Asset CleanUp plugin, you can choose which styles and scripts to load on each page. However, this plugin combines helpful functions from various popular plugins, such as Asset Queue Manager, WP Asset CleanUp (Page Speed Optimizer), Clearfy (discussed below), Disabler, and Admin Tweaks.<\/p><p>The plugin authors have also released other related free plugins, the most relevant among them being <a href=\"https:\/\/wordpress.org\/plugins\/clearfy\/\">Clearfy<\/a> for this use case.<\/p><h3 class=\"wp-block-heading\">4. Clearfy Cache<\/h3><p><a href=\"https:\/\/wordpress.org\/plugins\/clearfy\/\">Clearfy Cache<\/a> is another site optimization plugin by the authors of WordPress Assets Manager. It\u2019s a multipurpose plugin with many features, including over 50 helpful functions to optimize your WordPress site.&nbsp;&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"939\" height=\"425\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Clearfy-Cache-WordPress-Optimization-Plugin.png\" alt=\"Clearfy\n\" class=\"wp-image-6412229\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Clearfy-Cache-WordPress-Optimization-Plugin.png 939w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Clearfy-Cache-WordPress-Optimization-Plugin-310x140.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Clearfy-Cache-WordPress-Optimization-Plugin-768x348.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Clearfy-Cache-WordPress-Optimization-Plugin-133x60.png 133w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Clearfy-Cache-WordPress-Optimization-Plugin-199x90.png 199w\" sizes=\"(max-width: 939px) 100vw, 939px\" \/><figcaption class=\"wp-element-caption\">Clearfy<br><br><br><br><br><\/figcaption><\/figure><p>Clearfy is primarily a caching plugin at its core, but its assets management feature is relevant here for removing unused CSS. Clearfy also includes video tutorials to help you understand its various plugin settings and get started with it quickly.<\/p><h2 class=\"wp-block-heading\">How to Automatically Reduce\/Remove Unused CSS with a WordPress Plugin<\/h2><p>There aren\u2019t many WordPress plugins to automate Remove Unused CSS processing. WP Rocket is one of the few that does it without a hitch, and it does it automatically!<\/p><h3 class=\"wp-block-heading\">WP Rocket<\/h3><p><a href=\"https:\/\/wp-rocket.me\/\">WP Rocket<\/a> is one of the easiest and simplest WordPress plugins to remove unused CSS. It is a powerful caching and performance optimization plugin that automatically enables essential web performance best practices to boost your page speed.&nbsp;<\/p><p>One of WP Rocket\u2019s standout advanced features is removing unused CSS. Enabling this option automatically removes all the unused CSS for each page, keeping only the used CSS.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1612\" height=\"720\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Optimize-CSS-Delivery-WP-Rocket-Remove-Unused-CSS.gif\" alt=\"WP Rocket\u2019s Remove Unused CSS feature\n\" class=\"wp-image-6412237\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Optimize-CSS-Delivery-WP-Rocket-Remove-Unused-CSS.gif 1612w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Optimize-CSS-Delivery-WP-Rocket-Remove-Unused-CSS-310x138.gif 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Optimize-CSS-Delivery-WP-Rocket-Remove-Unused-CSS-768x343.gif 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Optimize-CSS-Delivery-WP-Rocket-Remove-Unused-CSS-134x60.gif 134w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Optimize-CSS-Delivery-WP-Rocket-Remove-Unused-CSS-202x90.gif 202w\" sizes=\"(max-width: 1612px) 100vw, 1612px\" \/><figcaption class=\"wp-element-caption\">WP Rocket\u2019s Remove Unused CSS feature<br><\/figcaption><\/figure><p>You can enable it under WP Rocket\u2019s <strong>File Optimization<\/strong> tab, inside the <strong>Optimize CSS delivery<\/strong> feature.<\/p><h3 class=\"wp-block-heading\">How WP Rocket Remove Unused CSS Feature Works<\/h3><p>After you\u2019ve enabled the Remove Unused CSS feature, WP Rocket will start generating Used CSS files for all the non-cached versions of your webpages, starting with your homepage.&nbsp;<\/p><p>All the other pages will require a visit to generate Used CSS files. To avoid this, you can enable the <strong>Preload<\/strong> feature to speed up this process. Enabling it will allow WP Rocket to simulate visits to your pages, creating and applying Used CSS.&nbsp;<\/p><p>These Used CSS files are stored locally on your server and compressed with the GZIP algorithm.&nbsp;<\/p><p><strong>Note:<\/strong> WP Rocket\u2019s Remove Unused CSS feature will reduce the overall page size but may increase the HTML document size. That\u2019s because the used CSS is added inline in the HTML document. This is in line with <a href=\"https:\/\/developer.chrome.com\/docs\/lighthouse\/performance\/unused-css-rules\/\">Google\u2019s suggestions<\/a>.&nbsp;<\/p><p>Removing unused CSS is a fairly advanced feature. If you make any changes to your stylesheets or add custom CSS, you must manually clear all Used CSS through your WP Rocket toolbar menu. However, WP Rocket will automatically clear the Used CSS whenever you edit a post\/page, clear the post\/page cache, and edit\/delete items. It\u2019ll also clear the Used CSS when a new comment is detected.&nbsp;&nbsp;<\/p><p>You can also <a href=\"https:\/\/docs.wp-rocket.me\/article\/1559-disable-remove-unused-css-for-specific-pages-or-posts\">disable the Remove Unused CSS feature<\/a> on specific pages or posts with the WP Rocket Options meta box. The documentation also includes a link to a helper plugin that lets you do this process in bulk.&nbsp;<\/p><p>Furthermore, enabling this feature will automatically disable the <a href=\"https:\/\/docs.wp-rocket.me\/article\/1317-preload-fonts\">Preload Fonts<\/a> feature, as all the used fonts will be preloaded on the page before the CSS block.&nbsp;<\/p><p>WP Rocket is 100% compatible with most WordPress hosting providers and plugins, including popular page builders, WooCommerce, and other WordPress tools. If you encounter issues using the Remove Unused CSS feature, refer to <a href=\"https:\/\/docs.wp-rocket.me\/article\/1529-remove-unused-css#clear-used-css\">WP Rocket\u2019s documentation<\/a> or contact WP Rocket\u2019s <a href=\"https:\/\/wp-rocket.me\/support\/\">customer support<\/a>.&nbsp;<\/p><div id=\"om-jbyojf9wimyywstllxy9-holder\"><\/div>\n\t<script>(function (d, u, ac) {\n\t\t\tvar s = d.createElement('script')\n\t\t\ts.type = 'text\/javascript'\n\t\t\ts.src = 'https:\/\/a.omappapi.com\/app\/js\/api.min.js'\n\t\t\ts.async = true\n\t\t\ts.dataset.user = u\n\t\t\ts.dataset.campaign = ac\n\t\t\td.getElementsByTagName('head')[0].appendChild(s)\n\t\t})(document, 20440, 'jbyojf9wimyywstllxy9')<\/script><h2 class=\"wp-block-heading\">Additional Tips to Reduce Unused CSS on Your WordPress Website<\/h2><h3 class=\"wp-block-heading\">Choose a Lightweight and Lean WordPress Theme&nbsp;<\/h3><p>WordPress is famous for its extensive and diverse selection of themes. However, many themes ship with unnecessary features, including animations, complex layouts, widgets, blocks, etc. All these features add to Unused CSS and can slow down your website.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1449\" height=\"745\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WP-Astra-Plugin.png\" alt=\"Astra is a popular, lightweight WordPress theme\" class=\"wp-image-6412254\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WP-Astra-Plugin.png 1449w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WP-Astra-Plugin-310x159.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WP-Astra-Plugin-768x395.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WP-Astra-Plugin-117x60.png 117w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WP-Astra-Plugin-175x90.png 175w\" sizes=\"(max-width: 1449px) 100vw, 1449px\" \/><figcaption class=\"wp-element-caption\">Astra is a popular, lightweight WordPress theme<\/figcaption><\/figure><p>Go for themes that have a clean and well-organized codebase. Make sure that the developer is reputed and listens to community feedback. And most importantly, see to it that the theme is updated regularly.&nbsp;&nbsp;<\/p><p>But with so many themes out there, choosing the right theme for your website can take time and effort. To help you with that, we tested the most popular WordPress themes with PageSpeed Insights and GTmetrix speed testing tools. You can <a href=\"https:\/\/wp-rocket.me\/blog\/fastest-wordpress-themes\/\">read our list here<\/a>.&nbsp;<\/p><h3 class=\"wp-block-heading\">Minimize The Number of Plugins<\/h3><p>Plugins are one of WordPress\u2019 greatest strengths. They help you add features to your site easily.&nbsp;<\/p><p>However, there\u2019s such a thing as <a href=\"https:\/\/wp-rocket.me\/blog\/wordpress-plugins-many\/\">too many plugins<\/a>. Some plugins aren\u2019t coded most efficiently, while others aren\u2019t maintained regularly. Having a lot of plugins also increases the chances of plugin conflicts and introducing your site to security vulnerabilities. They can also add unnecessary CSS to your page.&nbsp;<\/p><p>How do you fix that? By minimizing the number of plugins installed on your site. Decide carefully if your site really needs another plugin. If you haven\u2019t used a plugin in a long time, it\u2019s best to let it go.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1273\" height=\"866\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WP-Rocket-Features.png\" alt=\"WP Rocket features\" class=\"wp-image-6412260\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WP-Rocket-Features.png 1273w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WP-Rocket-Features-287x195.png 287w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WP-Rocket-Features-768x522.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WP-Rocket-Features-88x60.png 88w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/WP-Rocket-Features-132x90.png 132w\" sizes=\"(max-width: 1273px) 100vw, 1273px\" \/><figcaption class=\"wp-element-caption\">WP Rocket features<\/figcaption><\/figure><p>Another tip is installing multifunctional plugins, so you don\u2019t have to install many plugins to add each feature. For instance, if you plan to use Gutenberg Blocks, instead of using multiple Blocks plugins to add various elements, choose one comprehensive Blocks plugin covering all your required components. That way, you\u2019ll have consistent styling and less CSS bloat. A few Blocks plugins you can explore are <a href=\"https:\/\/wordpress.org\/plugins\/ultimate-addons-for-gutenberg\/\">Spectra<\/a>, <a href=\"https:\/\/wordpress.org\/plugins\/otter-blocks\/\">Otter Blocks<\/a>, <a href=\"https:\/\/wordpress.org\/plugins\/ultimate-blocks\/\">Ultimate Blocks<\/a>, and <a href=\"https:\/\/wordpress.org\/plugins\/coblocks\/\">CoBlocks<\/a>.<\/p><h3 class=\"wp-block-heading\">Avoid Inefficient Page Builders and Plugins<\/h3><p>WordPress page builders are great and make building websites super easy, even for amateurs. You can build beautiful websites with them without knowing how to code.&nbsp;<\/p><p>However, page builders can add bloat to your frontend, like including a default stylesheet with tons of unused CSS. And if these sections use custom styles for widgets, complex animations, etc., that\u2019s even more CSS bloat. Page builders like Elementor are aware of this and are <a href=\"https:\/\/developers.elementor.com\/how-elementor-improved-asset-loading-and-made-your-website-run-faster\/\">updating their code<\/a> to rectify it.<\/p><p>Not all page builders are built the same way. As an example, Gutenberg is WordPress\u2019 native editor. It uses Blocks to create pages. Some themes like GeneratePress and Astra use Gutenberg Blocks to add as minimal bloat as possible.<\/p><p>The community project <a href=\"http:\/\/wpbuildersfightclub.org\">wpbuildersfightclub.org<\/a> compares various WordPress page builders on multiple parameters to see how they perform. They use the same design per page and host it on the same server, but use different page builders to create the site. That gives you a fair view of how each page builder performs.<\/p><p>WP Rocket\u2019s website is 100% powered by Gutenberg for performance. Read <a href=\"https:\/\/wp-rocket.me\/blog\/wp-rocket-chose-gutenberg-performance-improved\/\">why and how we shifted to Gutenberg<\/a> on our blog.<\/p><h3 class=\"wp-block-heading\">Enable CSS Optimizations in Page Builders&nbsp;<\/h3><p>Page Builders like Elementor and Divi also realize that pages built with them generate a lot of unused CSS. They\u2019ve added new features to reduce the amount of unused CSS and achieve faster page loads.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1084\" height=\"461\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Elementor-Improved-CSS-Loading-Performance-Feature.png\" alt=\"Elementor\u2019s \u201cImproved CSS Loading\u201d feature\n\" class=\"wp-image-6412269\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Elementor-Improved-CSS-Loading-Performance-Feature.png 1084w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Elementor-Improved-CSS-Loading-Performance-Feature-310x132.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Elementor-Improved-CSS-Loading-Performance-Feature-768x327.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Elementor-Improved-CSS-Loading-Performance-Feature-141x60.png 141w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Elementor-Improved-CSS-Loading-Performance-Feature-212x90.png 212w\" sizes=\"(max-width: 1084px) 100vw, 1084px\" \/><figcaption class=\"wp-element-caption\">Elementor\u2019s \u201cImproved CSS Loading\u201d feature<br><\/figcaption><\/figure><p>If you use Elementor, enable its <a href=\"https:\/\/elementor.com\/help\/conditional-and-inline-css-load-experiment\/\">Improved CSS Loading<\/a> feature. Doing so will force CSS stylesheets and the Animations library to load conditionally. Furthermore, the CSS files are loaded as inline style tags to avoid <a href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/eliminate-render-blocking-javascript-css\/\">render-blocking processes<\/a>. According to Elementor, you can \u201csave up to 523KB\u201d on a page by enabling this feature and other performance experiments.<\/p><p>Likewise, the Divi page builder has the <a href=\"https:\/\/www.elegantthemes.com\/blog\/divi-resources\/divi-speed-optimization#css\">Dynamic CSS<\/a> feature. Enabling it will only load CSS for components on the page. Divi does this by combining all the used CSS in a single stylesheet and loading it.&nbsp;<\/p><p>Some page builders don\u2019t require this feature as they already use only the required CSS by default. Read your page builder\u2019s documentation for more information.<\/p><h3 class=\"wp-block-heading\">Disable Unused Icons and Gutenberg Block Editor Styles<\/h3><p>A large chunk of the unused CSS triggers are due to unused icons and Gutenberg Block Editor styles. WordPress themes or pagebuilders typically add these icons.<\/p><p>Some plugins listed above, like Clearfy, include features to disable icons and Gutenberg-related CSS. The <a href=\"https:\/\/wordpress.org\/plugins\/disable-unused-block-editor-blocks\/#description\">Disable Unused Block Editor Blocks<\/a> plugin will show you which block is used in any post, page, custom post type, widgets, and sidebars. This will help you identify all the blocks you can disable safely.&nbsp;&nbsp;<\/p><p>And some pagebuilders, like Elementor, have built-in features to disable their icons, Google Fonts, and Font Awesome library (globally or per page). You can <a href=\"https:\/\/elementor.com\/help\/speed-up-a-slow-site\/\">check its documentation<\/a> for more information.&nbsp;<\/p><h3 class=\"wp-block-heading\">Replace YouTube Iframe With A Preview Image<\/h3><p>Embedding YouTube videos on your page will pull in CSS from the YouTube player. But if the user never watches the video, it\u2019s an unnecessary addition to the page, especially if multiple videos are embedded. Instead, you can replace the YouTube iframes with their respective preview images.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"338\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Enable-Youtube-preview-image-iframes-WP-Rocket.png\" alt=\"WP Rocket\u2019s \u201cReplace YouTube iframe with preview image\u201d feature\n\" class=\"wp-image-6412277\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Enable-Youtube-preview-image-iframes-WP-Rocket.png 680w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Enable-Youtube-preview-image-iframes-WP-Rocket-310x154.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Enable-Youtube-preview-image-iframes-WP-Rocket-121x60.png 121w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Enable-Youtube-preview-image-iframes-WP-Rocket-181x90.png 181w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><figcaption class=\"wp-element-caption\">WP Rocket\u2019s \u201cReplace YouTube iframe with preview image\u201d feature<br><\/figcaption><\/figure><p>The free <a href=\"https:\/\/wordpress.org\/plugins\/wp-youtube-lyte\/\">WP YouTube Lyte<\/a> plugin does exactly that. WP Rocket\u2019s <a href=\"https:\/\/docs.wp-rocket.me\/article\/1488-replace-youtube-iframe-with-preview-image\">Replace YouTube iframe with preview image<\/a> feature also does the same. If you enable the Lazyload load for images feature, the preview image will also be lazyloaded.&nbsp;<\/p><h2 class=\"wp-block-heading\">Wrapping up<\/h2><p>Eliminating unused CSS is a critical performance optimization practice. This article discussed how to do it manually and with various plugins. WP Rocket\u2019s Remove Unused CSS feature can automate this process with a single click, helping you save time and effort. <a href=\"https:\/\/wp-rocket.me\/pricing\/\">Give it a try, and let WP Rocket do the job for you!<\/a><\/p><p>\ud83d\ude80 The only risk you\u2019ll take with our plugin is speeding up your website. Remember: WP Rocket automatically applies 80% of web performance best practices, instantly boosting your Core Web Vitals scores.&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Are you looking for a straightforward and easy way to remove unused CSS without and with plugins? Keep reading! You\u2019ll learn everything you should know to eliminate unused CSS and speed up your site<\/p>\n","protected":false},"template":"","core_web_vitals":[132],"class_list":["post-3455832","core_web_vitals_hub","type-core_web_vitals_hub","status-publish","hentry","core_web_vitals-improve-largest-contentful-paint"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Remove Unused CSS on WordPress (With + Without Plugins)<\/title>\n<meta name=\"description\" content=\"Looking for a way to remove unused CSS and boost your site? Keep reading! You\u2019ll find everything you need to know to tackle the CSS issue.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Remove Unused CSS on WordPress (With + Without Plugins)\" \/>\n<meta property=\"og:description\" content=\"Looking for a way to remove unused CSS and boost your site? Keep reading! You\u2019ll find everything you need to know to tackle the CSS issue.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Rocket\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-27T10:24:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/\",\"url\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/\",\"name\":\"How to Remove Unused CSS on WordPress (With + Without Plugins)\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights.png\",\"datePublished\":\"2021-06-01T13:16:55+00:00\",\"dateModified\":\"2024-06-27T10:24:04+00:00\",\"description\":\"Looking for a way to remove unused CSS and boost your site? Keep reading! You\u2019ll find everything you need to know to tackle the CSS issue.\",\"breadcrumb\":{\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/#primaryimage\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights.png\",\"width\":939,\"height\":510},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wp-rocket.me\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Core Web Vitals\",\"item\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Largest Contentful Paint\",\"item\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/improve-largest-contentful-paint\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to Remove Unused CSS on WordPress (With + Without Plugins)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wp-rocket.me\/#website\",\"url\":\"https:\/\/wp-rocket.me\/\",\"name\":\"WP Rocket\",\"description\":\"Plugin d&#039;optimisation de sites WordPress\",\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wp-rocket.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wp-rocket.me\/#organization\",\"name\":\"WP Rocket\",\"url\":\"https:\/\/wp-rocket.me\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"width\":150,\"height\":41,\"caption\":\"WP Rocket\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\",\"https:\/\/x.com\/wp_rocket\",\"https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Remove Unused CSS on WordPress (With + Without Plugins)","description":"Looking for a way to remove unused CSS and boost your site? Keep reading! You\u2019ll find everything you need to know to tackle the CSS issue.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/","og_locale":"en_US","og_type":"article","og_title":"How to Remove Unused CSS on WordPress (With + Without Plugins)","og_description":"Looking for a way to remove unused CSS and boost your site? Keep reading! You\u2019ll find everything you need to know to tackle the CSS issue.","og_url":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/","og_site_name":"WP Rocket","article_publisher":"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","article_modified_time":"2024-06-27T10:24:04+00:00","og_image":[{"url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights.png"}],"twitter_card":"summary_large_image","twitter_site":"@wp_rocket","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/","url":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/","name":"How to Remove Unused CSS on WordPress (With + Without Plugins)","isPartOf":{"@id":"https:\/\/wp-rocket.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/#primaryimage"},"image":{"@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights.png","datePublished":"2021-06-01T13:16:55+00:00","dateModified":"2024-06-27T10:24:04+00:00","description":"Looking for a way to remove unused CSS and boost your site? Keep reading! You\u2019ll find everything you need to know to tackle the CSS issue.","breadcrumb":{"@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/#primaryimage","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/12\/Reduce-Unused-CSS-PageSpeed-Insights.png","width":939,"height":510},{"@type":"BreadcrumbList","@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/remove-unused-css\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wp-rocket.me"},{"@type":"ListItem","position":2,"name":"Core Web Vitals","item":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/"},{"@type":"ListItem","position":3,"name":"Largest Contentful Paint","item":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/improve-largest-contentful-paint\/"},{"@type":"ListItem","position":4,"name":"How to Remove Unused CSS on WordPress (With + Without Plugins)"}]},{"@type":"WebSite","@id":"https:\/\/wp-rocket.me\/#website","url":"https:\/\/wp-rocket.me\/","name":"WP Rocket","description":"Plugin d&#039;optimisation de sites WordPress","publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp-rocket.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wp-rocket.me\/#organization","name":"WP Rocket","url":"https:\/\/wp-rocket.me\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","width":150,"height":41,"caption":"WP Rocket"},"image":{"@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","https:\/\/x.com\/wp_rocket","https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q"]}]}},"_links":{"self":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/core_web_vitals_hub\/3455832"}],"collection":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/core_web_vitals_hub"}],"about":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/types\/core_web_vitals_hub"}],"wp:attachment":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media?parent=3455832"}],"wp:term":[{"taxonomy":"core_web_vitals","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/core_web_vitals?post=3455832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}