How can I make the SmartGWT core smaller?

I recently wrote a Hello World application using SmartGWT and noticed that the size of the application is huge. In my case, this is more than 600 kb only for this application.

I think the size is obscene, so I narrowed down the culprit to two main libraries, ISC_Core and ISC_Foundation, which combine for a total size of 649kb. Is there anyway to reduce bloating of these libraries?

Any help would be appreciated.

+6
java gwt smartgwt
source share
4 answers

SmartGWT is not intended for Hello World applications, but for complex enterprise applications that work with a large number of objects and have many screens. In this case, the final size of the SmartGWT application is comparable, if not less than the size with which you could work with any other technology.

Basically, if you embark on a large-scale application using flyweight technology, you will get an application code that recreates functions already in SmartGWT. There is no bloat - SmartGWT is very compact on a per-byte basis - there are simply more options.

If you really have an ultralight use case - let's say adding a little interactivity to a website consisting mostly of static content, then JQuery and other ultra-light frameworks are the way to go. Many enterprises use a mixture of jQuery and SmartGWT / SmartClient, each for different purposes.

+5
source share

Unfortunately, you cannot, since SmartGWT is already indicated here , the size will remain constant or even increase. I tried SmartGWT, but because of this problem and third-party integration problems, I chose a different infrastructure.

A possible solution to their problem would be to introduce a dynamic JavaScript loader, for example, in ZK . I used it in my corporate projects and it works very well.

Currently, for small applications, I usually use jQuery .

+2
source share

As Charles said, you should keep in mind that you are actually creating a rich client on a single HTML page, so it only loads once. You can preload the libraries on the login page where no one notices it while it enters credentials.

Take a look at http://www.smartclient.com/docs/7.0rc2/a/b/c/go.html#group..networkPerformance

+1
source share

If foot printing is really important to you, you can consider Ext GWT. Ext GWT has everything that has been done in Java (and compiled with GWT). It can delete codes that are not covered by your application.

-one
source share

All Articles