Tuesday, October 8, 2013

Re: GWT not loading .js

Oh my, my messages got all posted. I dont know why I didnt see them in my session. Sorry for the spam. I'm deleting the useless ones.

I see what you mean, but I dont have the possibility to change the relative path from where GWT fetches the permutations, do I ? I'm using quite a few code splitting too by the way.

GWT always loads permutations/split points from the location where app.nocache.js is stored. You can not change that (unless you want to rewrite app.nocache.js after compilation) and normally you don't need to change that. You can copy all GWT compile output in any folder as long as everything is in the same folder.

 

Maybe I shall try to use public directory via the gwt.xml. Can I put all the JS (permutations, deferred,gwt folder, img bundles...) inside /public for example ?

You can put anything in the public folder. GWT just copies everything to the output folder. I have images, fonts, binary files, etc in the public folder. Doesn't really matter.

 
The thing is, I have more then one module on the server also, so that means that I shall put all the files together ? Or maybe something like /public/module1 and /public/module2.

To make it easier to understand I would create one public folder per GWT module and would put resources in it that are tied to that GWT module. Just give it a try. Create a public folder next to your client folder and put a file in it. Then do a draftCompile and take a look at the war folder. Also note that "public" is the default name of the public folder. You can modify that in your gwt.xml using <public path="public/module1" /> if you want to.

 

Since the problem arrives only for one ISP, i need to make a solution that handles both cases ... so I cant really use it as a feature :)

What I mean is that you could use that inlining solution always.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment