Hi,
The project I'm working on is seeing a lot of native Javascript creeping in, largely as a result of the requirement to incorporate UI features developed by other teams that specialise in Javascript. I am hoping to manage the Javascript dependencies using require.js (
http://requirejs.org/). Correctly used, require.js will remove the problem where a script loads, executes, and fails because of a reference to another script that hasn't finished loading yet.
But I still have problems when JSNI code calls into a Javascript library before it's finished loading. The solution would appear to be to use require.js to load the nocache script that boots the application, so that it won't start executing until all its dependencies have loaded.
Does anyone know if this is possible? Any advice?
Thanks,
Chris