Is there a way to add Dojo modules in ASP.NET MVC bundle?
I know that for using Dojo modules, should use define()
or require()
and browser loads each module as different .js file. But in pages, where I need to use more modules and browser should load 50 (for example) .js files, this make entire page's load slower.
Thank you!
As far as I know there is no direct way to make a dojo build in an ASP.NET MVC bundle.
But in order to maximize page's load you need to build your dojo application using dojo/util and link the resulted files in your HTML head.
A dojo build allows you to:
More information on The Dojo Build System.
Very useful dojo boilerplate to start with.