Wednesday, December 11, 2019

Re: Execution order of cache.js versus other script tags

Usually you would use GWT's ScriptInjector together with ClientBundle + TextResource/ExternalTextResource. That way you can either embed your external JS into the GWT JS (TextResource) so it downloads as part of your app download or you let the GWT app asynchronously download the JS when needed (ExternalTextResource).

You can also use GWTs XML modules to include additional scripts which will be loaded before your entry point starts. But it could be that it won't be compatible with future GWT versions based on J2CL. http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideAutomaticResourceInclusion

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/f1eced63-8c79-4410-9eea-4601ba318539%40googlegroups.com.

No comments:

Post a Comment