I have 3 main windows in my Xulrunner app that will be accessed very frequently. The application is running on a very slow system, so before the window shows up, I see a fully black box, and then the window appears, filling that black area.
As I'm in an embedded system, and the "minimize" animation is not shown, I did the window's minimize instead of closing, but it's still not showing up as fast as I wanted.
Is there a way to let a window load in a buffer so that it appears more quickly? Or, how can I display this window in the fastest way possible?
--update
By the way, the windows have nothing heavy. One is a popup window with a "Loading" label, and I it still takes much time (about a second) to show up:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Style -->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="loadingWindow" hidechrome="true"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<vbox pack="center" align="center">
<label id="textLabel">Loading...</label>
</vbox>
</window>
I open it with:
openDialog("chrome://myapp/content/loading.xul", 'Loading', 'chrome, popup, centerscreen');