Student
Student

Reputation: 28345

Is there an event that tells when the window is visible (painted, not black)?

My Xul app will run in a very slow system, and the "active" event of the Xul windows is called while my window is still not visible (the window area is black waiting for the window to be painted). A second later the window is painted.

Is there an event that tells when the window is visible (painted, not black)?

Upvotes: 0

Views: 273

Answers (3)

Neil
Neil

Reputation: 55382

Maybe the MozAfterPaint event will help you.

Upvotes: 1

yuttadhammo
yuttadhammo

Reputation: 5199

I think you are dealing with the limitations of old hardware :)

If there is an image in your page, you could try adding onload to the image and see what happens...

If you are using a specific box, couldn't you use window.setTimeout()?

Upvotes: 0

Detect
Detect

Reputation: 2069

Does window.onload work any better?

Upvotes: 0

Related Questions