Skip to main content
All CollectionsTroubleshootingPageSpeed Scores
Reduce Unused CSS Recommendation Is Still Present in PageSpeed Insights
Reduce Unused CSS Recommendation Is Still Present in PageSpeed Insights
Updated over a year ago

Although our Reduce Unused CSS feature may be enabled for your website, the PageSpeed Insights report will still scan all your website’s stylesheets.

However, as long as there is any CSS file with more than 2 KB of unused code, Google PSI will always display the “Reduce Unused CSS” recommendation.

image1.png

The most common reason for unused CSS, despite our feature, is classes and styles being added or manipulated using JavaScript code.

This means that all tag ids, classes, or tags identified in the JavaScript code of your website by NitroPack, are kept, as we are unaware of when the JavaScript may modify the page's content.

In these cases, the "Reduce unused CSS" opportunity might not move to the "Passed audits" section. The "Potential Savings" value, though, should be improved significantly.

Additionally, some CSS code may be used for future development or to support older browsers that may not be able to use modern CSS features.

Our Remove unused CSS feature may significantly reduce the amount of unused CSS on your website, but it may not completely remove all unused CSS.

This is because some CSS may be used only in certain conditions or on certain pages and may not be easily identified by automated tools or browser developer tools.

Reducing the unused CSS can be a complex job, which is why automated applications or plugins can be quite harsh on a website and cause visual issues.
But the best and most reliable method to do that is to manually evaluate the code and decide which CSS code is needed and which is not.

📌 If you need any assistance, you can always reach out to our support team at [email protected] or via this link: https://support.nitropack.io

Did this answer your question?