Hi,
Is it a good habit to locate universal functions (used by other scripts) in Control Script?
Thanks in advance,
Sławek
Hi,
Is it a good habit to locate universal functions (used by other scripts) in Control Script?
Thanks in advance,
Sławek
Hi Wowersla,
It depends on what you are doing with the functions, if you need something to be executed before the page is run then putting them in the control script is worthwhile. Otherwise you could also look at adding a separate JS file to your job.
regards
Alex
Personally think it is good practice to have universal functions in a Control Script assuming these functions are used by other User scripts. Doing the same in various projects and solutions.