Thursday, December 19, 2013

Re: Soft Permutation Creating JavaScript for Server Side Script Selection

Are you aware that this approach will fail as soon as you have deferred binding properties (your own or through a 3rd party lib) that can only be filled with a value through JS execution inside the browser? Or put differently: If you have a deferred binding property whose values can not be inferred from the user agent string.

It would be far more robust if you would only embed the app.nocache.js contents into your index.php/jsp and leave the permutation files untouched. That way you eliminate the request of app.nocache.js but you can still have any kind of deferred binding property.

If you still want to follow your path, I think you need to implement your own linker that changes the names of the emitted artifacts to the format you would like to have.

A basic example of a custom linker: http://webcentersuite.blogspot.de/2011/05/writing-gwt-linker-for-offline.html

-- 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