0

A Website im working on for several years now gets bigger and bigger.. CSS-Files are not very clear right now..

How am i able to find out which code of my huge css-file is not used on my homepage? So that im able to delete this?

I recently found this: Removing unused CSS from website code

The Problem is, my page got of course multiple pages. I should know which css code is not used in all of the pages.

2 Answers 2

0

Can you check the method given here on using uncss. This parses your site and produces a css with only the used styles.

Sign up to request clarification or add additional context in comments.

Comments

0

If you are familiar with node js you can also use "find unused css": https://www.npmjs.com/package/find-unused-css

This scans your html files and find out the unused css selectors. Currently it only supports class and id selectors.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.