M
M
massef2018-07-26 17:33:33
1C-Bitrix
massef, 2018-07-26 17:33:33

Bitrix: How to include styles and scripts?

Hello.
Is it possible to change the order of including styles and scripts?
Now I have it connected like this:
In header.php
There is a common global.css/js with the code needed for all pages. Plus plugin styles.
Bitrix collects these files into one template.css/js
file. Further, I separately connect the necessary files for a specific page.
For example, there is a catalog/index.php folder in the root, in which header.php is first included, and below I include my files.
Bitrix collects these files in page.css/js
The problem is that Bitrix inserts the collected files in this order:
page.css/js
template.css/js
And it should be the other way around. Can this be fixed somehow?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question