Organization/Performance question for you guys. Let's say I have a few things happening on Sales Order, one only happens on beforeLoad & view and another happens on beforeSubmit & on create. Would you:
1. Create 1 script that loads all the modules needed for both functions. Then have the script check the type and then call one of the functions based off of that. or
2. Create 2 scripts that each load only the modules needed for that particular function and only have the script deployment run on view/create respectfully