Is it impossible to combine the two approaches? I tried setting my dojoConfig to the following baseUrl // ajax.googleapis.com / ajax / libs / dojo / 1.8.3 /, and at the same time, the script tag points to a custom dojo build file. The problem is that when loading custom dojo.js, NLS files (e.g. dojo_en-US.js) do not load. Could not find workaround.
As I can see, as long as the deployment environment is open for CDN, this would be the best solution for several reasons (as others have already pointed out): 1. Custom dojo reduces XHR and improves performance 2. In case the custom assembly is incomplete (who I added a request), XHR is served much faster 3. There are resources (for example, images) that cannot be embedded in the user assembly, and therefore downloading them from the CDN is preferable 4. Packaging and deploying the application is much faster because it should contain only file dojo.js, not all resources dojo release.
I would be happy if someone could prove to me their mistake and tell me how I can combine the two approaches.
Thanks Lior
source share