I have the AppAsset connected to the main js file of the website;It contains some global functions which I use in view registerJS (being executed at the end: POS_END) javascript code.
What I have noticed is, the code in file(AppAsset bundle) is being execute after registerJS’ code. I would like the code from the file to be first executed then registerJS.