A
A
Andrey Fedorov2020-03-03 10:54:25
css
Andrey Fedorov, 2020-03-03 10:54:25

How to remove duplicate CSS?

Tell me there is some tool for such a task:
There are 2 CSS files, one - main.css contains all the styles of the page. The other one is critical.css. There styles for fast loading of the first screen of the page. So main.css already contains the styles that are in critical.css, etc. when main.css is loaded, they are reloaded. To reduce the size of main.css, it would be logical to remove the styles that are already there from it.
How to do it? Of course, the "manual" option is not suitable.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Martovitskiy, 2020-03-03
@Martovitskiy

uncss

A
Alex, 2020-03-03
@Kozack

https://habr.com/ru/company/ruvds/blog/477274/
https://habr.com/ru/company/ruvds/blog/477276/

K
Kovalsky, 2020-03-03
@lazalu68

cave

N
NikiTank, 2020-03-04
@NikiTank

Webpack solves such problems at once

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question