Ah you mean in the bootstrap file (the single nocache.js file)?

I believe you could go through that nocache.js file and delete the
onHostedMode() function and the couple of calls to it without causing
an issue if you're only going to use web mode.  However, if you
compile using the flag -style OBFUSCATED then this extra code is only
a handful of characters in size - which will be insignificant compared
to your application code (in the various cache.html files)....unless
I'm misunderstanding you.

//Adam

On 20 Jan, 19:21, 1jkoch <[email protected]> wrote:
> Hi Adam,
>
> generated .js files contain the following code (GWT 1.5):
>
>   function isHostedMode(){
>     try {
>       return $wnd.external && ($wnd.external.gwtOnLoad &&
> $wnd.location.search.indexOf($intern_5) == -1);
>     }
>      catch (e) {
>       return false;
>     }
>   }
>
> This operation is called from two if statements (also within the .js)
> that have hosted-mode specific code inside.
>
> This is not much code we're talking about but still superfluous if you
> run you app only in web mode.
>
> Thanks for your quick reply,
> Jörn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to