On Nov 8, 9:23 am, Thomas Broyer <[email protected]> wrote:
> On 7 nov, 05:57, ftang <[email protected]> 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 <script src="myapp/myapp.nocache.js"></
> script> at the very end of your page, it'll all load after everything
> else in the page.

but that is not what I want. I don't want "loading after page load", I
want "loading on demand"
(or not loading if no demand)

>
> So the question is: why do you want to delay the load of the script
> after window.onload?

because most of the users won't need those feature so I don't want to
blow the loading unless user click on a ui
to clearly indicate he/she need it.

>
> > Looks like I should use ssolinker, so I add the following line to
>
> > <add-linkername="sso" />
>
> SSOlinkerwon't help you, as it also uses document.write() to load JS
> dependencies, just like any other built-in linkers. What you want
> (which isn't necessarily what you need ;-) ) doesn't come built-in in
> GWT, you'd have to make your ownlinker.
>
> > I assume the "permutation" mean the generated js for one kind of
> > browser.
>
> You're right; except that there will also be additional permutations
> for each language when you use I18N, and other libraries might add
> even more of them (gwt-log or gwt-incubator's logging can add up to 5
> *times* more permutations, one for each log level "threshold")
>
> > How can I set the flag in GWT configuration to ask it to only
> > have only one distinct permutation so thislinkerwill work?
>
> There's no such flag.
--~--~---------~--~----~------------~-------~--~----~
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