I simply want to load a GWT(Google Web Toolkit) app by adding a script tag to the DOM, however because the GWT linker uses `document.write()` I'm unable to find any good way of doing so. I've found some hacks for doing so on various blog posts but they all seem to fail with the latest version of GWT. Any reasonably non-invasive approach for doing this come to mind?

**Clarification:**

Normal way to start up a GWT app, in your host html page:

```
<script type="text/javascript" language="javascript" src="myapp.nocache.js"></script> 

```

This, of course, starts up as soon as the page loads. I want to do it at a later time:

```
function startapp() {
    var head = document.getElementsByTagName('head');
    var s = document.createElement('script');
    s.setAttribute('type', 'text/javascript');
    s.setAttribute('src', 'myapp.nocache.js');
    head[0].appendChild(s);
}

```