J
J
JastaFly2021-06-09 11:55:49
1C-Bitrix
JastaFly, 2021-06-09 11:55:49

Connecting JS to Bitrix?

Good day to all! Bitrix has a method Asset::addJs which puts JavaScript in the head. But what if I need to include JS not in the head, but somewhere else?!?? Moreover, so that it is not cached. What are the options!??
Thank you all in advance)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ainur Valiev, 2021-07-10
@vaajnur

use Asset::addString(
there 2, the 3rd parameter is just what you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question