Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Javascript Modules - Useful or Unnecessary?

$
0
0

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!


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images