S
S
Sergey2011-10-17 12:54:53
css
Sergey, 2011-10-17 12:54:53

Dead code in CSS?

They gave the project for debugging, but there CSS grew to disgrace. And half of it is definitely not used. I wondered - is there any utility for finding dead code in CSS? I understand that there are many prejudice stones: you need to check on all pages for which styles are used, take into account the work of JS (the same jQuery UI) ... But still ... all this is quite feasible. Maybe already implemented?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
H
holyorb2, 2011-10-17
@holyorb2

Firefox + Firebug + CSS Usage

M
Meliborn, 2011-10-17
@Meliborn

On safari, for example.

V
Vlad Frolov, 2011-10-18
@frol

My friends are now sawing csscleaner.net/ just what you need. However, it is now running quite slowly.
PS Please note that the server cannot parse pages closed by authorization, so you either need to upload a zip archive (did not check if it works), or open pages for access by unauthorized users.
PS2 By the way, if you have ideas on how to process pages closed by authorization, I would pass them on to them.

E
Evgeny Leshchenko, 2011-10-17
@xsen

There is such a thing - CSSTidy , can remove css duplicates. I use it like this: I collect all the included files into one, run it with CSSTidy, save it and put it in the cache folder.

P
Pavel Belorussky, 2016-03-09
@hpcmir

As I understand it, the question remained open, since all the utilities from the topic are not without a "sin".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question