I wrote a GWT library for the javascript visualization library ( dygraphs ).
This is a simple wrapper using JavascriptObject and JSNI to call dygraphs code.
So far, I have included the dygraphs.js script in my GWT module XML file, and it worked just fine.
However, when I recently tried to use SuperDevMode , I had to switch to an xsiframe linker , which does not allow script tags.
What is the best practice of including external javascript scripts in the GWT library with cross-site linker?
The best I could come up with is to include the Javascript file as a TextResource in the ClientBundle and then use the ScriptInjector to enable it?
Is this a recommended approach or is there a better way?
I have to make sure dygraphs.js is fully loaded before my application using my GWT wrapper gets access to it.
Γmit source share