Are GWT shells over javascript libraries encouraged?

I am in the process of choosing an API to create a GWT application. The answer to the following questions will help me choose one of the many libraries.

  • Does third-party code overwrite GWT faster than code using a wrapped JavaScript library?
  • Will the code using the wrapped library have the same performance as pure GWT if the main JavaScript framework is well written and tuned?
+3
source share
3 answers

While JavaScript libraries get a lot of programmatic eyeballs and attention, GWT has the advantage of being able to do some terribly unreadable things to humans with generated JavaScript code for the browser for performance.

In theory, anything that the GWT compiler does should be JavaScript writers. But in practice, JS library writers must maintain their code. Take a look at jQuery code. It is clearly not optimized for every browser. With some effort, I could take jQuery and configure it only on Safari, saving a lot of code and speeding up what is left.

This is an ongoing battle. JavaScript libraries are competing with each other, faster and faster. GWT is getting better and better, and has the advantage that you can write ugly, unreachable JavaScript for the browser.

, , , , .

+3

. , GWT.

, , Java/GWT

GWT, , , , JS. , GWT, Js.

+2
  • , .
  • .

In general, look at the community around a third-party library before using it if it is not open source (so that you can fix errors) and especially look for error messages - how quickly the development staff react to the elements. Duration of release cycle, etc.

+1
source

Source: https://habr.com/ru/post/1711489/


All Articles