S
S
Sveklovoz2017-07-14 15:05:27
css
Sveklovoz, 2017-07-14 15:05:27

CSS code optimization on Bitrix. How to do it right?

Hello. The task is to optimize the site so that it loads quickly, without frills, save space without harming the external wrapper and functionality.
Bitrix has code minimization, but it does not seem to remove unused styles. Audit through the developer's console gave out as many as 6300+ unused styles, of which 50% are in kernel.css (in which 100% of the styles are not used) what can I do? Where can I turn it off and where are styles generally edited and how are they rebuilt in bitrix/cache? Is it automatic or do I need to do something?
And why are there two bootstraps in Bitrix. One normal other ".min"
Before that, I had to deal with the Yii Framework. There, the collector immediately eliminates everything superfluous. I would be glad for any hints, for me it is a dark forest.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
avk0981, 2019-08-12
@avk0981

Try the module - Bitrix has several on the market.
I like this one https://marketplace.1c-bitrix.ru/solutions/ammina.... I liked it - not only CSS - it optimizes everything

D
Denis Gorokhov, 2020-03-05
@gorokhov_dv

There is a good module for CSS: https://marketplace.1c-bitrix.ru/solutions/gorokho...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question