Hello,
If I remember correctly (it's been a long while) Dojo has it's own
package import system for lazy loading other scripts. Because
Diffable also contains a package loading system, they do not
immediately play well together. The way I see it, there are two
options:
1.) You can modify the Dojo code to load your Dojo scripts using the
Diffable servlet. This would involve putting all of the Dojo
Javascript code in your resource folder, and then modifying the Dojo
package loader to append the Diffable servlet prefix to package URLs.
This assumes that Dojo lazy loads packages using script tags. I would
have to dig further into this to speak with authority.
2.) You can flatten the Dojo files into a single script file. I am
not sure exactly how this would work, but I would bet the Dojo package
loader could be made to skip import calls if the namespace/functions
already exist on the page, as it would if the package had already been
loaded.
Does this answer your question? I will be quite busy for the next
week or so, but after that I would be more than happy to help you look
at this more as I think it'd be great to have such a popular library
load easily using Diffable.
Thanks again,
Joshua