Sunday, November 13, 2016

Re: Single JS for all browsers with SIngle Script Linker


better to use one single script for all browsers rather then collapsing all different scripts:

<set-property name="user.agent" value="safari"/> 

our app works well  for all browsers: 
https://studio.cospaces.io/#Gallery

четверг, 10 ноября 2016 г., 5:03:14 UTC+3 пользователь Marko написал:
It works with <collapse-all-properties />!

Thank you!

Marko

On Wednesday, November 9, 2016 at 9:41:41 AM UTC+1, Mihai Stanciu wrote:
You can try something like this:

<set-property name="user.agent" value="gecko1_8, safari"/>

<collapse-all-properties />



On Wednesday, November 9, 2016 at 8:27:21 AM UTC+2, Marko wrote:
Hi!

Is is possible to create a single JavaScript output ffrom a GWT application which would support all major browsers (Safari, Gecko, IE10)? If yes: how can I specify which browsers should be supported?

If I use:
<add-linker name="sso"/>

along with:
<set-property name="user.agent" value="safarimgecko1_8,ie10"/>

I get the:
[ERROR] The module must have exactly one distinct permutation when using the Single Script Linker; found 3

It seems that generated (single) JavaScript file is browser-dependent and not a cross-browser...

--
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment