Opened 14 years ago
Closed 14 years ago
#2531 closed defect (fixed)
Fine-tune file dependencies
Reported by: | guest | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | General | Version: | 0.4.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
As it stands, the dependencies between different dojo files are pretty broad and cause a lot of download grief for anyone that wants to use some simple dojo functionality in their system. A simple example would be if I wanted to use *just* the InlineEditBox?:
dojo.require("dojo.widget.InlineEditBox?");
This would in turn, cascade to the following dependencies:
dojo.require("dojo.widget.*"); dojo.require("dojo.event.*"); dojo.require("dojo.lfx.*"); dojo.require("dojo.gfx.color"); dojo.require("dojo.string"); dojo.require("dojo.html.*"); dojo.require("dojo.html.layout");
Which would in turn cascade to many others. To make it easy to comprehend, creating a custom build with just the inline editbox:
var dependencies = [
"dojo.widget.InlineEditBox?"
];
load("getDependencyList.js");
creates a *compressed* dojo file of 180kb!!! This is a killer on public internet website projects.
Dojo is great stuff, but hopefully dependencies will be fine-tuned and reduced considerably so that the internet public can really benefit from dojo without the bloat aspect.
This is being addressed in the 0.9 rewrite. If there are specific dependencies or profiles which are excessively large, please open a ticket with specific info.