Thanks.But I assume before I can call the exported functions from JavaScript I still have to include the GWT App (i.e. nocache.js) into the webpage? Or how else would JavaScript know of these functions? So this brings me back to the original problem how to start the GWT app from JavaScript.
--
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/-/3SeST-oYepQJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
--
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/-/3kcoeYzVihsJ.
How can I "delay the loading of the js file and not directly included in your html page" ? That's exactly the question here;) Seems to me I have to include the first nocache.js file on the host page and can NOT include this dynamically from JavaScript? Code splitting and runAsync() isn't really a solution for me because all the code of the frameworks still gets loaded with the first part of the code (see my first post).After searching for a few hours I've found that writing an own GWT linker (i.e. implementing com.google.gwt.core.ext.linker.AbstractLinker) might be a possible solution to my problem. Can anyone confirm this? Since I have no idea how to write my own linker or even get startet it would be comforting to know that if I start following this path it will definietly lead to a solution.. ;)
--
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/-/FAlnk8yzcMsJ.
For example,
<button onclick="dogwt()">Do GWT</button>
function dogwt() {
var s = document.createElement("script");
s.src = "my.nocache.js"
document.body.appendChild(s)
}
This way is the same way jsonp works, so Google jsonp if my code is
broken or you need more options. (Forgive me for not testing that
code, posting from a tablet.)
document.write() clears the entire document before writing, which is
why your screen goes white.
Derek