I currently use namespaces for my JS files after reading through some best practices for custom D365 CRM code.
However, I recently ran across a post that mentioned that modules, not namespaces, are now the preferred way of packaging code. Looking into this, I'm confused about a few things:
- If the goal is to decrease load time, don't all the libraries included on a form get downloaded regardless? So packaging code into separate modules wouldn't improve load time, correct?
- If the goal is to decrease or manage dependencies, don't all libraries get loaded before the UI loads, so that wouldn't be a concern?
- Would a "helper file" with a namespace work just as well or the same as exporting/importing modules?
Thanks for the help!