Datasheet
Chapter 1: Enhancing Development with Dojo Core
dojo.require("dijit.form.DateTextBox");
dojo.require("dijit.form.NumberSpinner");
dojo.require("dijit.form.Slider");
dojo.require("dijit.layout.AccordionContainer");
</script>
</head>
The
dojo.require()
calls you see in this
<script>
block use the Dojo module system. For each of these,
if the named module has not already been loaded, the Dojo core attempts to locate and load it dynami-
cally to satisfy each dependency. If any of these modules declares further requirements — and these, in
particular, do — Dojo will scoop them up as well.
In fact, if you happen to use Firefox as your browser, and have the Firebug extension installed, you
can take a look at the network activity tab and monitor all the requests generated by the requirements
specified. Check out Figure 1-1 for an example of what you might see. There’s quite a lot going on here,
but keep in mind that there are tools for optimizing this later on.
Figure 1-1
4