Anyone used GWT with Require.js?
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
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/mMW8aYqdclAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home