M
M
Max Vyznyuk2016-05-04 13:49:35
css
Max Vyznyuk, 2016-05-04 13:49:35

How to optimize third-party css libraries?

Is there any tool that would analyze html files and, based on the results of the analysis, generate one (or several) from third-party css files with only those classes that are used on the page?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav Khvostov, 2016-05-04
@thespacemax

There is such a methodology - BEM and a library for it bem - components . Only the styles that you use are collected there. (or indicated in dependencies)
For other libraries - this is not the case.

@
@gugozoha, 2016-05-04
_

it is unlikely that this will happen, because styles can be loaded with js, and even come from the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question