Dojo huge footprint - am I doing something wrong

I am making a web application using dojo toolkit and heres my code

dojo.ready(
 function(){
 dojo.declare("Main",null,{
_dialog:null,
constructor: function()
{
    dojo.require("dijit.Dialog");
},
make_dialog: function(url)
{
    _dialog= new dijit.Dialog({
        href:url,
    });
    _dialog.show();
}
}); // class ends

temp=new Main();
});// dojo.ready ends

      

My problem is when I load dijit.Dialog multiple js files (20 plus) are loaded, like tooltip.js, backgroundIframe.js is about 60KB in size. I want to ask if this is dojo ok or if I do

And my main problem is that it makes 55 different requests. Please help me.

+1


source to share


1 answer


A custom assembly packs everything into multiple files.



http://dojotoolkit.org/reference-guide/quickstart/custom-builds.html

+3


source







All Articles