I need to listen the js functions, get the name of that function in order to look up that function inside my js files in order to create the tag inside the head to provide the source, I have seen different on demand solutions, but can't find this particular need.
it will be something like:
js function excecute > listen function > get name of the function > match the js file with the function called > create the script src inside the head to provide the js file.