Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3938566
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:11:58+00:00 2026-05-20T00:11:58+00:00

In my larg GWT app i tried to split initial download and it happened

  • 0

In my larg GWT app i tried to split initial download and it happened but I confused in Leftover and exclusive fragments.
Because for example when I use of GWT.runAsync –> onSuccess –> “Window.alert(“blob blob”);” in onModuleLoad it caused to download a fragment with 1MB size! I think it is other initial fragment, isn’t ?
In general my question is how to change leftover or initial fragments to exclusive fragments?

RGDS

Navid

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T00:11:58+00:00Added an answer on May 20, 2026 at 12:11 am

    In general with the GWT.runAsync method you can create exclusive fragments or leftovers.
    In order to move a piece of code from the initial download to an exclusive fragment, not only you have to use the runAsync method but you also have to make sure that the code in the runAsync method is not referenced in sync parts of your application.

    Provided this condition is satisfied, your code can end up in an exclusive fragment (if the code is not used by other runAsync methods) or a leftover (if it is referenced in mulptiple runAsync method).

    //Class A is referenced only here!
    GWT.runAsync(new RunAsyncCallback() {
        @Override 
        public void onSuccess() {
            a = new A();                
        }
    
        @Override
        public void onFailure(Throwable reason) {
           ...
        }
    });
    
    ....
    
    //Class B is referenced in different points but always inside async calls!
    GWT.runAsync(new RunAsyncCallback() {
        @Override 
        public void onSuccess() {
           b = new B();             
        }
    
        @Override
        public void onFailure(Throwable reason) {
           ...
        }
    }); 
    
    ....
    
    GWT.runAsync(new RunAsyncCallback() {
        @Override 
        public void onSuccess() {
           b = new B();             
        }
    
        @Override
        public void onFailure(Throwable reason) {
           ....
        }
    }); 
    

    The code relative to class A will be in an exclusive fragment, class B will be in a leftover.

    In general, i suggest you use Compile Reports to understand what’s going on in code splitting.

    Also: calling runAsync in onModuleLoad doesn’t make much sense.
    1MB? Are you sure? maybe post an example and I can try to understand what’s going on

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I Download AdvancedLogging64 from microsoft and config it on IIS7 ,but in the resualt
How do I do for my larg GWT project, the compile time is going
I'm using virtual mode of listview to show a larg data. But I don't
I'm working on Scala with VERY larg lists of Int (maybe large ) and
Ive cobbled together the following code and it works, but it feels too hacky:
How to set desktop icon on larg size from c++? Windows 7 professional is
Flexicious a third party component library built for handling very larg data set in
in this address i am trying to scrape a tage (that is Larg price
I've this code: <script> $(document).ready(function larg(){ var larghezza = $(document).width(); $(p.width).text(The width for the
I have this PHP code : $query = SELECT * FROM news WHERE news_active

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.