Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    partial js loading

    I want to use SmartGWT in our project.
    I have refered many GWT applications. All of them only generate (generated by compiler) one JS file. When the application is started, this single js file which include all the client logic of this application will be downloaded to browser totally.

    There are many modules and screens in our system. If we generate the source of all modules/screens into one js file, it will cause a very long download period and we may encounter out of memory exception during the compilation.

    So, I am studying how to implement partial js load in a GWT application.
    Today, when I was studying the smartclient feature explorer and smartgwt showcase. I found the feature explorer loaded some js from server but the showcase did not when I open an new example. I think the feature explorer support the feature that I want.

    My questions are:
    Why the showcase does not support partial loading as feature explorer?
    How do I implement the partial loading for a application use smartgwt?

    #2
    Partial loading of an application (load on demand) is a feature that is going to be supported by GWT itself. The relevant code is already in the GWT trunk if you'd like to experiment with it. Search for "runAsync" in the GWT google group.

    Sanjiv

    Comment

    Working...
    X