Do the script includes used in the condition field of UI actions get instantiated separately?

chrisf
Kilo Expert

Hello,

I have a form that has many UI actions on it each of which instantiate the same script include and then their own particular function within that script include. I was wondering if the same script include is instantiated for each UI action when the form is rendered.  I am concerned that handling UI actions in this manner isn't the most performant in cases where there are many UI actions on a form.  

1 ACCEPTED SOLUTION

DYCM
Mega Sage

Hi @chrisf ,

You can print out some logs in "initialize" function, by observing the logs, you will know how many times  "initialize" function is called. (This function gets called when the Script Include is initialized)

1.png

View solution in original post

2 REPLIES 2

DYCM
Mega Sage

Hi @chrisf ,

You can print out some logs in "initialize" function, by observing the logs, you will know how many times  "initialize" function is called. (This function gets called when the Script Include is initialized)

1.png

Hi @DYCM ,

This worked to get the info I needed.  Thanks!