Andrei F
Andrei F

Reputation: 4394

GWT page is not loaded correctly on IE8 on first access

I'm having a strange problem when loading my app on IE8: on the first page load, the application is loaded, but nothing is shown on page (blank page). The strange thing is that when i move the mouse over textbox or links, the cursor changes, seaming that every element is invisible. If i hit refresh, the page is drawn correctly. I have tested on a windows XP, on virtual machine, IE8. On IE9 also works fine.

This issue appears in the compiled code (production mode). I believe that the problem is a the code size: the initial download is 700KB, and then another fragment is downloaded (800KB), although the page is not visible at all after the initial donwload.

EDIT: I just made a few tests: i cleared the onModuleLoad method and added just a label and a text box. They are being displayed correctly. So doesn't that mean that there is no problem with the settings (html or .gwt.xml file)?

Upvotes: 0

Views: 562

Answers (1)

Andrei F
Andrei F

Reputation: 4394

I managed to solve the problem by including at least one tag for my stylesheets. All of my css files were loaded in my .gwt.xml module, none in the base html file. So, it's a very strange workaround for IE8 where the page is displayed blank (at the first load) if it doesn't contain any css tag in the html file.

Upvotes: 0

Related Questions