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 1108793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:08:16+00:00 2026-05-17T02:08:16+00:00

I am looking to compile my gwt application into a single, monolithic, cross-browser compatible

  • 0

I am looking to compile my gwt application into a single, monolithic, cross-browser compatible .html file. Ultimately, I’m trying to design an Amazon mechanical turk template via gwt. These templates must be a single .html file, since they are hosted on Amazon’s machines. The .html file can reference external sources, but via absolute address only since I have no control over the file hierarchy.

It does not concern me that the monolithic file will load slower than having separate files for each browser. I am developing a fairly simple web form containing only client-side code that will be seen by very few people. Therefore, speed and cross-browser correctness are not primary concerns.

I have found that by adding the following line to my MODULE_NAME.gwt.xml I can generate a single javascript file that works exclusively for a single browser (e.g. firefox as shown below):

<set-property name="user.agent" value="gecko">

I then embed the generated code into my .html file, and it works for the single browser specified. Unfortunately, when I try opening the .html file in other browsers, the gwt generated javascript does not load.

Is there a linker command that I can add to this file that will do the trick? I tried to invoke the SingleScriptLinker via:

  <add-linker name="sso" />

but got the following error:

[ERROR] The module must have exactly
one distinct permutation when using
the Single Script Linker.

I also attempted to tweak the contents of the generated javascript files in order to make them compatible enough to embed in the .html file, but the javascript generated by gwt is too confusing (even in the detailed output mode). Is there a walk-through for how to do this?

I’m using the gwt eclipse plugin on OSX.

  • 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-17T02:08:16+00:00Added an answer on May 17, 2026 at 2:08 am

    As luck would have it, I have found a workaround soon after posting my question:
    http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/79e9634110487490

    In short, the answer is to use cross-site scripting.

    • Add the following line to MODULE_NAME.gwt.xml:

      < add-linker name=”xs” />

    gwt will generate a MODULE_NAME.nocache.js file as well as some MD5.cache.js files (note the MD5 files end with .js, not .html).

    • Compile your application

    • Now, put all of these .js files on server A.

    • Modify your MODULE_NAME.html file to contain an absolute reference to MODULE_NAME.nocache.js on server A.

    • Upload MODULE_NAME.html to server B.

    The cross-site linker makes everything work.

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

Sidebar

Related Questions

I've been looking into writing a small cross-platform OpenGL/helper code that can compile on
I'm looking for a way to compile our application a bit faster, and there
I'm looking for a light-weight database library that I can compile into a C++
I am looking for a Lua front-end compiler that is type-checked at compile time,
What is the difference between gwt-user.jar and gwt-dev.jar ? Looking at their contents, I
I'm looking for a way to compile a few flavors of my Java software
I'm looking to compile my Delphi 2010 project using MSBuild, but something isn't right,
I'm looking for the ability to convert entire methods into Expression trees. Writing it
I am looking for a tool that will help me to compile a history
im looking for simple script that will compile to exe , and i found

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.