Re: [gwt-contrib] Remove unused code of external JavaScript file?

2015-12-31 Thread confile
Okay, When I put the code of the external JS file in a JSNI method. Do I have to put all the code I one method? To have a concrete example here is the code I use: https://github.com/Atmosphere/atmosphere-javascript/blob/master/modules/javascript/src/main/webapp/javascript/atmosphere.js Could

Re: [gwt-contrib] Remove unused code of external JavaScript file?

2015-12-31 Thread Colin Alworth
The short answer is yes, it can all go into one method, or several methods, etc. The important part is "what does that JS expect to do", and how might we accidentally break it by letting a compiler at it. With that big of a file, I'm afraid I don't have time right now to take it apart piece by

Re: [gwt-contrib] Remove unused code of external JavaScript file?

2015-12-30 Thread Colin Alworth
It depends on how you are including the JavaScript source. If it is a

[gwt-contrib] Remove unused code of external JavaScript file?

2015-12-30 Thread confile
I have an external JavaScript file which I use using JSNI or JS Interop. I only use parts of this js file/ library. *Is it possible to reduce the code of this external js file using GWT?* -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group.