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

  • Home
  • SEARCH
  • 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 79549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:09:48+00:00 2026-05-10T21:09:48+00:00

In order to provide nice URLs between parts of our app we split everything

  • 0

In order to provide nice URLs between parts of our app we split everything up into several modules which are compiled independently. For example, there is a ‘manager’ portion and an ‘editor’ portion. The editor launches in a new window. By doing this we can link to the editor directly:

/com.example.EditorApp?id=1 

The EditorApp module just gets the value for id and loads up the document.

The problem with this is ALL of the code which is common between the two modules is duplicated in the output. This includes any static content (graphics), stylesheets, etc.

And another problem is the compile time to generate JavaScript is nearly double because we have some complex code shared between both modules which has to be processed twice.

Has anyone dealt with this? I’m considering scrapping the separate modules and merging it all back into one compile target. The only drawback is the URLs between our ‘apps’ become something like:

/com.example.MainApp?mode=editor&id=1 

Every window loads the main module, checks the value of the mode parameter, and and calls the the appropriate module init code.

  • 1 1 Answer
  • 4 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. 2026-05-10T21:09:48+00:00Added an answer on May 10, 2026 at 9:09 pm

    I have built a few very large applications in GWT, and I find it best to split things up into modules, and move the common code into it’s own area, like you’ve done. The reason in our case was simple, we had some parts of our application that were very different to the rest, so it made sense from a compile size point of view. Our application compiled down to 300kb for the main section, and about 25-40kb for other sections. Had we just put them all in one the user would have been left with a 600kb download, which for us was not acceptable.

    It also makes more sense from a design and re-usability point of view to seperate things out as much as possible, as we have since re-used a lot of modules that we built on this project.

    Compile time is not something you should generally worry about, because you can actually make it faster if you have seperate modules. We use ant to build our project, and we set it to only compile the GWT that has changed, and during development to only build for one browser, typical compile times on our project are 20 seconds, and we have a lot of code. You can see and example of this here.

    One other minor thing: I assume you know that you don’t have to use the default GWT paths that it generates? So instead of com.MyPackage.Package you could just put it into a folder with a nice name like ‘ui’ or something. Once compiled GWT doesn’t care where you put it, and is not sensitive to path changes, because it all runs from the same directory.

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

Sidebar

Related Questions

I have an on-screen keyboard in order to provide a safer input for passwords.
I'm attempted to use deferred and hitch in order to provide a callback for
I'm trying to unmarshall some dozer mapping files in order to provide a mapping
First, in order to provide full disclosure, I want to point out that this
Does ruby or rails provide a method to order strings in a specified order?
A nice chap called Darin kindly provided me with some code in order for
In order to provide progress feedback of file uploads I need to install a
I have a class that inherits from MemoryStream in order to provide some buffering.
At the moment I'm trying to use node-sftp in order to provide my nodejs
I have code that highlights the current textbox in focus in order to provide

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.