Single JS for all browsers with SIngle Script Linker

173 views
Skip to first unread message

Marko

unread,
Nov 9, 2016, 1:27:21 AM11/9/16
to GWT Users
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...

Mihai Stanciu

unread,
Nov 9, 2016, 3:41:41 AM11/9/16
to GWT Users
You can try something like this:

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

<collapse-all-properties />

Marko

unread,
Nov 9, 2016, 9:03:14 PM11/9/16
to GWT Users
It works with <collapse-all-properties />!

Thank you!

Marko

Kirill Prazdnikov

unread,
Nov 13, 2016, 3:53:41 PM11/13/16
to GWT Users

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: 

четверг, 10 ноября 2016 г., 5:03:14 UTC+3 пользователь Marko написал:
Reply all
Reply to author
Forward
0 new messages