Hello - I need to add some custom js to the Account form. I noticed that the Account form in my CRM implementation is associated with a js file named Account_main_library.js.
Does CRM include [Entity]_main_library.js as a Web Resource for all entities as part of the default CRM installation?
Also, I noticed that the Account_main_library.js in my CRM implementation has almost 2K lines of code. That's too much code in 1 file imho.
Does your team have any rules for keeping js files more manageable? For example:
* A js file should not have more than 1K lines of code * A set of specialized functions should be grouped together into its own js file * etc
I'm guessing that there's not a technical reason to have a js WebResource with 2K lines of code in CRM. I'm guessing the file just kept growing because the devs never took the time to create more specialized js files. What are your thoughts on the best way to manage this?