I have 3 main windows in my Xulrunner application that will be accessed very often. The application works in a very slow system, so before the window appears, I see a completely black box, and then a window appears that fills this black area.
Since I’m in the embedded system, and the "Minimize" animation is not shown, I closed the window and did not close it, but it still does not appear as fast as I wanted.
Is there a way to let the window load into the buffer so that it appears faster? Or, how can I display this window as quickly as possible?
- update
By the way, there is nothing heavy in the windows. One of them is a pop-up window labeled “Download,” and I still need a lot of time (about a second):
<?xml version="1.0" encoding="UTF-8"?> <?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');
source share