Hi @czokalapik
I’m glad that you found it. I’m sorry I couldn’t help you right away.
Regarding your question, I think you can do it by using the JS ‘load’ action like this:
acf.add_action('load', function( $el ){
// $el will be equivalent to $('body')
// your code here
console.log('test');
});
This page should give you more idea about it: https://www.advancedcustomfields.com/resources/adding-custom-javascript-fields/#actions.
I hope this helps 🙂