Wednesday, December 11, 2019

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

Thanks!

On Wednesday, December 11, 2019 at 2:45:30 AM UTC-8, Jens wrote:
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/a5ac1310-ecc8-4be8-8f95-7616d3efd8f4%40googlegroups.com.

No comments:

Post a Comment