Dojo巨大的足迹 - 我做错了事情 [英] Dojo huge footprint- Am I doing something wrong
本文介绍了Dojo巨大的足迹 - 我做错了事情的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用dojo工具包制作一个网页应用程序,并修复我的代码
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
我的问题是,当我加载dijit.Dialog它正在加载各种js文件(20加)像
tooltip.js,backgroundIframe.js单独使用大约60kb。我想问的是dojo是否正常行为,或者我正在做
My problem is that when I load dijit.Dialog it is loading various js files( 20 plus) like tooltip.js,backgroundIframe.js taking about 60kb alone. I want to ask is it dojo normal behaviour or I am doing
而我的主要问题是它使55个不同的请求。请帮助我。
And my main problem Is that it making 55 different request. Please help me.
推荐答案
自定义构建将把所有内容都打包成更少的文件。
A custom build will package everything up into a fewer files.
http://dojotoolkit.org/reference-guide/quickstart /custom-builds.html
这篇关于Dojo巨大的足迹 - 我做错了事情的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文