On Monday, March 17, 2014 4:47:57 PM UTC+1, Jean Baro wrote: > > Hi there, > > I work for a large company and my manager wants me to find something > similar to what GWT does when delivering optimized versions of websites to > end users. If the visitor is using Safari/Mac then the server should > deliver an optimized version of it, but if it uses IE11 on Win8, then a > different version (potentially smaller and optimized to IE11) would be > delivered. > These days, browsers converge towards a common behavior, so the need for browser-specific code is decreasing in every browser release (and there's one every 6 weeks ;-) ). For GWT, we'll try to move to a single permutation in the future (that will take time though, we first have to remove support for old browsers, up to and including IE9). IE11 for example will use the same code as Firefox in a GWT app.
What you're looking for has a name: premature optimization. > I know GWT can achieve that by cross-compiling Java to Javascript and that > it's based on visual components, but maybe there is something out there > (even paid) which would do similar things to existing Spring or more > traditional (not component based) web development. > GWT does not mandate the use of widgets. Have a look at the http://gwtproject.org website, it uses GWT for "progressive enhancement": https://gwt.googlesource.com/gwt-site-webapp/ I have talked to AKAMAI and F5, but their solutions (FEO) don't optimize > Javascript nor CSS according to visitor's browser. And as we have millions > of users, we need to make sure our website works on "all" platforms, > otherwise we lose money. > > If such a thing exists, it should only use one source code (HTML, CSS and > JS). We wouldn't want to have to write optimized version (html, css, js) > for each different browser, this would be something an agent or precompiler > should do for us, automatically. > > Why not using GWT then? Because our website is content based, and the > "photoshop experts" send their "work of art" and we have to deliver pixel > perfect websites, integrate it with facebook, G+ and others, more like > Amazon.com than an ERP or CRM application. > > Please, is anyone aware of such library or tool? > As I said above, you could still use GWT. If you prefer working in JS rather than Java, then have a look at the Closure Compiler and Closure Library. By setting the right flags, you can produce different outputs limited to a given range of browsers; so just repeat that for each one of your targets. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
