I was just wondering and it is just a general question that was Tickling my brain. Dojo 1.7 an above uses the AMD module which is a great way of calling widgets and helping classes.
The question the normal way to call classes or AMD modules with call back looks like below:
require(['dojo/_base/lang', 'dojox/grid/DataGrid', 'dojo/data/ItemFileWriteStore', 'dojo/dom', 'dojo/domReady!'],
function(lang, DataGrid, ItemFileWriteStore, dom){
in this way i am calling the lang, DataGrid and ItemFileWriteStore module with a call back in the function to use these modules, some of the modules doesn't have a callback such as dojo/domReady!.
So is there a difference or would it cause an error in the sequence of calling the modules ? or the important part is to have them on the same sequence in the require and the function. but it doesn't matter which to call first ?