Best practices? Loading other javascript libraries

1
What is the best way to include different javascript libraries? In which folder should I store these javascript libraries? Do I then directly load them? Or package include them through dojoConfig, because then I should be able to require them inside widget specific javascript files? Does AMD / asynchronous loading of these packages even work in Mendix? Is it smart to change the baseUrl: "mxclientsystem/dojo/" (PS what does mxclientsystem refer to?)
asked
2 answers
1

Thanks Arjen,

but I was hoping to get some more in depth information. The dojo provide and dojo require are clear to me for a single script, but i'm really looking to how for example include several javascript files including JQuery without interference with dojo and preferably setting it up in such a way that both dom.byId("fooBar"); and $ can be used throughout my entire project to target elements. I wish to be able to use JQuery because there are many great scripts created using JQuery and I dont really feel like rewriting every single one of them to a dojo version, so I was hoping including both libraries would be fairly easy.

answered
0

Loading javascript libraries can be done. An example is given at this post.

answered