Opened 15 years ago

Closed 15 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:


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?:


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 = [




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.

Change History (1)

comment:1 Changed 15 years ago by Adam Peller

Resolution: fixed
Status: newclosed

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.

Note: See TracTickets for help on using tickets.