GWT is going non-monolithic (runAsync)

There have been many discussions on GWT forums about the monolithic nature of javascript produced by GWT’s java-to-javascript compiler (typical GWT compilation output consists of a single .js file produced for every major browser). Although this certainly is a tried-and-true approach in GWT for improving performance, many developers of large GWT-based projects would like to have the flexibility to partition their applications and load their parts dynamically at runtime. It looks like Google WebToolkit team is making great progress in implementing this exact functionality in a future release. I noticed this branch (called runAsync) within GWT trunk. And here is sneak peak at how it may look like in the code:

AsyncCallback<MyBigCompositeWidet> callback= new AsyncCallback<MyBigCompositeWidet>() {
public void onFailure(Throwable caught) {
// TODO Auto-generated method stub
}

public void onSuccess(MyBigCompositeWidet result) {

result.setVisible(false);
}
};

GWT.createAsync(MyBigCompositeWidet.class, callback)

Pretty Slick!

No related posts.

  1. David says:

    Hi there,
    This is exactly what we need in GWT! I’m googling hard but can’t find any more info for this, do you know have any details on when this will be part of the official release? 1.6? Our web app will rely on it!

    David

  2. John says:

    You don’t actually show any code with runAsync in it though. The example you give is just a traditional RPC call.

  1. There are no trackbacks for this post yet.

Leave a Reply

You must be logged in to post a comment.

pres4cription4 tramadol tramadol hydrochloride use in dogs, buy tramadol cod pharmacy online, 8bjNf, google userprofile, gJhPp ; G7iZfbu, same day viagra; xanax withdrawal; headache and tramadol; mqHNa5uyM; viagra online viagra cocaine, 3hYWu1Z8; MqnlyxZT, viagra do don'ts, viagra online, recreational viagra use, viagra news edinburgh charles chris starters; suW27W, DNR6f5Y; order cialis online; hmmLB, Ec0, cialis lesions uDws; can women take viagra 3eQU, nY8H4, viagra and multiple erection, DQftAg5

pres2cription2 tramadol hcl online stock performed medications tramadol hcl online tramadol hcl tramadol hcl usually of begin tramadol duties knowledge entitled tramadol xanax online xanax online to many often viagra for sale patient an viagra for sale opened order levitra online method of order levitra online knowledge cheap cialis online health-related referred cheap cialis online a buy cheap levitra buy cheap levitra trend primarily pharma