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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:48:32+00:00 2026-06-04T09:48:32+00:00

In my html page there are external images and flashes, sometime they load slowly.

  • 0

In my html page there are external images and flashes, sometime they load slowly. My gwt app always starts running after they are loaded. I use xsiframe linker.

Is there any way to start running gwt before loading any images and resources which are inside body? Or make sure loading other things will not block starting gwt.

EDIT: I have created a minimal project that reproduces the problem:

entry point:

public class MyEntryPoint implements EntryPoint {
    public void onModuleLoad() {
        Window.confirm("onModuleLoad");
    }
}

html page:

<html><head>
    <script type="text/javascript"src="nocache.js"></script>
</head><body>
    <!-- http://stackoverflow.com/questions/100841/artificially-create-a-connection-timeout-error -->
    <img src="http://10.255.255.1/timeout.gif" alt="timeout image" />
</body></html>
  • 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-06-04T09:48:33+00:00Added an answer on June 4, 2026 at 9:48 am

    There are two possible solutions I can think of:

    1. xs linker

    You could use the old “xs” linker instead of “xsiframe”. This is not so nice, especially because xs doesn’t work in dev mode. But maybe you could use xsiframe during development, and then switch to xs for the real builds, tests and production.

    2. the <noscript> tag trick

    You can put the page contents, especially the slowly loading images, into a <noscript> tag, which is used, if the browser doesn’t support JavaScript.

    If however JavaScript is enabled, then the contents of that tag are ignored during loading. So what we will do in our GWT code (which can use the xsiframe linker again), is to copy the contents of the noscript tag back into the real page.

    Here’s some quick code:

    <!doctype html>
    
    <html>
      <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
        <script type="text/javascript" language="javascript"
                src="http://cdn.example.org/.../some.nocache.js"></script>
      </head>
    
      <body>
    
        <noscript>
          <p>A</p>
          <img src="http://10.255.255.1/timeout.gif" alt="timeout image" />
          <p>B</p>
        </noscript>
    
        <p>Test (should appear immediately if JavaScript is enabled)</p>
      </body>
    </html>
    
    @Override
    public void onModuleLoad() {
    
      final NodeList<Element> noscriptElems = 
          RootPanel.get().getElement().getElementsByTagName("noscript");
    
      final Element noscriptElem = noscriptElems.getItem(0);
    
      RootPanel.get().add(new Label("Here is GWT"));
    
      RootPanel.get().add(new HTMLPanel(noscriptElem.getInnerText()));
          /* Be careful of course, not to have bad html in your noscript elem */
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page that loads an external HTML page into an iFrame. There
I have an external JavaScript in my HTML page. Is there a way to
Is there a simple way to save an HTML page that has an external
I have been trying, unsuccessfully, to get a HTML page to load an external
On the page there are links displayed with CSS as buttons: HTML: <a class=button
Is there a way to access the page HTML source code using javascript? I
Is there a way to trigger a GridView rebind from an html markup page
Is there a page similar to JSbin where I can test HTML and CSS
The code segment is from a page called sites-catchup.html. There is a simple server
Is there a way for nesting an image in an HTML page *inline* in

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.