Re: what should I do with

2009-11-09 Thread ftang



On Nov 8, 9:23 am, Thomas Broyer  wrote:
> On 7 nov, 05:57, ftang  wrote:
>
> > I want to make the GWT compiled js as one single js so I can delay
> > loading after the page load
>
> GWT's *.nocache.js (with whichever built-inlinker) delays loading of
> the *.cache.html after DOMContentLoaded (or equivalent when
> DOMContentLoaded isn't supported); it however loads JS dependencies
> "synchronously" using document.write().

Is there a way I can make it compile into something depend on
nothing ? e.g. load nothing more?

> ...but if you place your 

what should I do with

2009-11-08 Thread ftang

I want to make the GWT compiled js as one single js so I can delay
loading after the page load
(via a var s = createElement("script"); s.src="my.js";
document.body.appendChild(s); )

Looks like I should use sso linker, so I add the following line to



to the MyModule.gwt.xml file to ask the GWT to compile into only one
js

but now I always get the following error
"
Bookstrap link for command-line module ...
Linking module ...
invoking Liker Single Script
The module must have exactly one distinct permutation when using the
Single Script Linker
"

I assume the "permutation" mean the generated js for one kind of
browser. How can I set the flag in GWT configuration to ask it to only
have only one distinct permutation so this linker will work?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---